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.

User opt-out

Users can opt out of all tracking programmatically:
// Opt out — stops all tracking
revlytics.optOut();

// Opt back in
revlytics.optIn();
Opt-out state is stored in localStorage under the key revlytics_ignore. When set to "true", the script exits immediately on page load. Integrate with your consent manager by conditionally loading the script:
// Only load Revlytics if user has consented
if (userHasConsented()) {
  const script = document.createElement("script");
  script.defer = true;
  script.setAttribute("data-site", "YOUR_SITE_ID");
  script.src = "https://revlytics.co/script.js";
  document.head.appendChild(script);
}
Or use the opt-out mechanism after the script is loaded:
// In your consent manager callback
onConsentChange((consent) => {
  if (!consent.analytics) {
    revlytics.optOut();
  } else {
    revlytics.optIn();
  }
});

What data is collected

DataCollectedStored
IP addressUsed for geolocationGeo only (country, region, city)
User agentParsed for browser/OSBrowser name, OS name
Page URLFull URLPath, hostname
ReferrerFull referrer URLAs-is
Screen sizeDimensionsWidth, height, viewport, pixel ratio
LanguageBrowser languageAs-is

Cookies used

CookiePurposeDuration
_rvl_vidVisitor identifier365 days
_rvl_sidSession identifier30 minutes (sliding)

localStorage keys

KeyPurpose
revlytics_ignoreOpt-out flag
_rvl_uidIdentified user ID

Iframe blocking

By default, tracking is disabled when your page is embedded in an iframe. This prevents analytics from being triggered by third-party embeds. Override with data-allow-iframe.

GDPR considerations

  • Revlytics uses first-party cookies only — no third-party tracking
  • No fingerprinting techniques are used
  • Users can opt out at any time via revlytics.optOut()
  • Self-hosting gives you full data ownership and control
  • Data can be deleted via the admin API (coming soon)