Google Tag Manager

If your site already uses GTM, you can deploy the Revly tracker through a Custom HTML tag without touching any code.

1. Create a new tag

In your GTM workspace, go to Tags > New. Give it a name like Revly Analytics, then click Tag Configuration and choose Custom HTML.

2. Paste the script

GTM Custom HTML tags do not reliably handle the defer attribute on static script tags, so use this JavaScript snippet instead. Replace YOUR_SITE_ID with the ID from your Revly site settings.

(function () {
  var s = document.createElement('script');
  s.defer = true;
  s.setAttribute('data-site-id', 'YOUR_SITE_ID');
  s.src = 'https://cdn.revly.pro/tracker.js';
  document.head.appendChild(s);
})();

3. Set the trigger and publish

Click Triggering, select All Pages, then save. Finally, click Submit and publish your container.

Need help? Reach out at contact@revly.pro