Skip to main content

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.

Setup

Add the data-allowed-hostnames attribute with a comma-separated list of domains:
<script
  defer
  data-site="YOUR_SITE_ID"
  data-allowed-hostnames="app.example.com,docs.example.com,blog.example.com"
  src="https://revlytics.co/script.js"
></script>

How it works

When a user clicks a link to an allowed hostname, Revlytics appends the current visitor ID (_rvl_vid) and session ID (_rvl_sid) as URL parameters. The receiving page picks up these IDs and continues the session.
https://app.example.com/dashboard?_rvl_vid=abc123&_rvl_sid=def456
This maintains a consistent visitor and session identity across domains.

Requirements

  • The same data-site ID must be used on all domains
  • The Revlytics script must be installed on all domains
  • All domains must be listed in data-allowed-hostnames on each domain

Same-site subdomains

For subdomains of the same root domain (e.g., app.example.com and docs.example.com), cookies may already be shared depending on your cookie configuration. Cross-domain tracking provides a reliable fallback.