Documentation Index
Fetch the complete documentation index at: https://revlytics.co/docs/llms.txt
Use this file to discover all available pages before exploring further.
How it works
Revlytics automatically tracks pageviews when the script loads. No configuration is needed. Every pageview event captures:| Field | Description |
|---|---|
url | Full page URL |
path | URL path (e.g., /pricing) |
hostname | Domain name |
title | Page title |
referrer | Referring URL |
utm_source, utm_medium, etc. | UTM campaign parameters |
screen | Screen dimensions, viewport, pixel ratio |
language | Browser language |
is_entry | Whether this is the first page in the session |
SPA navigation
For single-page applications, Revlytics listens for:pushState— triggered by client-side routersreplaceState— triggered by URL updates without navigationpopstate— triggered by browser back/forward buttonshashchange— triggered by hash-based routing (e.g.,#/about)
Hash-based routing
If your app uses hash-based routing (e.g.,example.com/#/about), Revlytics treats #/about as path /about. This is detected automatically.
Pageview deduplication
Same-URL pageviews are deduplicated within a 1-minute window. If a user navigates to the same URL multiple times in quick succession, only the first pageview is sent.Page duration
When a user leaves a page (navigates away or closes the tab), apageleave event is sent with the time spent on that page in milliseconds. This uses navigator.sendBeacon for reliable delivery even on tab close.
Entry pages
The first pageview in a session is marked withis_entry: true. This lets the dashboard show which pages visitors land on most frequently.