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.

Installation

Add the tracking script to your site’s <head> tag:
<script defer data-site="YOUR_SITE_ID" src="https://revlytics.co/script.js"></script>

Full example

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <title>My Website</title>
  <script defer data-site="YOUR_SITE_ID" src="https://revlytics.co/script.js"></script>
</head>
<body>
  <h1>Hello World</h1>
</body>
</html>
The defer attribute ensures the script loads without blocking page rendering.

Track custom events

<button data-revlytics-event="signup_click" data-revlytics-prop-plan="pro">
  Sign Up
</button>
Or via JavaScript:
revlytics.track("purchase", { plan: "pro", value: 29 });

Verify

Open your site and check the Revlytics dashboard. You should see your visit appear within seconds.