To add Usersnap to a server-rendered site, save the Usersnap space snippet in a template partial, load your API key from an environment variable, and include the partial just before the closing </body> tag. Because the partial runs on your server, you can add conditions (for example, show the widget only to logged-in users) and pass backend data such as the user ID or plan into the widget. Below are examples for PHP, Python (Jinja2 and Django), and Ruby on Rails.
Continue Reading “How to integrate Usersnap in your development workflow” →