How It Works
Automatic Pageviews
The tracker automatically records a pageview when the page loads. You don't need to write any extra code — it just works.
Single Page Apps (SPA)
If your website uses client-side routing (React, Next.js, Vue, etc.), the tracker detects navigation automatically. It listens for pushState and popstate events and sends a new pageview whenever the URL changes. No extra setup needed.
Sessions & Visitors
Revly tracks two identifiers to understand your traffic:
- Session — tied to the browser tab. A new session starts each time someone opens your site in a new tab. Closing the tab ends the session.
- Visitor — a persistent, anonymous identifier stored in the browser. This lets Revly distinguish returning visitors from new ones, without using cookies.
Heartbeat
While a visitor is actively viewing your site, the tracker sends a lightweight heartbeat every 30 seconds. This powers the “online now” counter on your dashboard. Heartbeats pause when the tab is hidden and resume when it becomes visible again. Heartbeats do not count toward your event quota.
Need help? Reach out at contact@revly.pro