Django

Add the Revly snippet to your base template and it will be included on every page that extends it.

1. Edit your base template

Open your base template (commonly templates/base.html) and paste the snippet before the closing </head> tag. Replace YOUR_SITE_ID with the ID from your Revly site settings.

<!DOCTYPE html>
<html>
  <head>
    ...
    <script
      defer
      data-site-id="YOUR_SITE_ID"
      src="https://cdn.revly.pro/tracker.js">
    </script>
  </head>
  <body>
    {% block content %}{% endblock %}
  </body>
</html>

2. Redeploy

No collectstatic or migrations are needed. Redeploy your app and tracking will start immediately.

Need help? Reach out at contact@revly.pro