Documentation

Everything you need to add Revly analytics to your website.

Quick Start

Add Revly to your website with a single line of code. Paste this snippet before the closing </head> tag:

<script
  src="https://cdn.revly.pro/tracker.js"
  data-site-id="YOUR_SITE_ID"
  defer
></script>

Replace YOUR_SITE_ID with the Site ID from your Revly dashboard. That's it — pageviews are tracked automatically.

Ensure reliable tracking

If you call revly.identify() or revly.track() before the script finishes loading, those calls will be lost. To guarantee they are captured, add this queue snippet before the main script:

<script>
  window.revly = window.revly || new Proxy({ q: [] }, {
    get: function(t, p) {
      return p === 'q' ? t.q : function() {
        t.q.push([p, Array.prototype.slice.call(arguments)]);
      };
    }
  });
</script>
<script
  src="https://cdn.revly.pro/tracker.js"
  data-site-id="YOUR_SITE_ID"
  defer
></script>

Once the tracker loads, it processes the queue automatically. Any method you add in the future (like custom events) is captured without changing this snippet.

Need help? Reach out at contact@revly.pro