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.

1. Create an account

Sign up at revlytics.co/signup using your email, Google, or GitHub account.

2. Add your site

After signing in, you’ll be guided through onboarding:
  1. Enter your website domain (e.g., example.com)
  2. Copy the tracking script snippet
  3. Paste it into your site’s <head> tag

3. Install the tracking script

Add this single line to your website’s <head>:
<script defer data-site="YOUR_SITE_ID" src="https://revlytics.co/script.js"></script>
Replace YOUR_SITE_ID with the site ID shown in your dashboard. You can find it in Settings → Manage Sites.
That’s it. Visit your site, then check your dashboard — you should see your first pageview within seconds.

4. Verify installation

Open your website in a browser and check:
1

Visit your site

Navigate to any page on your website.
2

Open the dashboard

Go to revlytics.co/dashboard and select your site.
3

Check the data

You should see at least 1 visitor and 1 pageview. The realtime view will show your visit on the globe.
If you’re testing on localhost, the script won’t track by default. Add data-allow-localhost to enable local testing. See Script Configuration.

What’s tracked automatically

Once installed, the script automatically captures:
  • Pageviews — Every page load and SPA navigation
  • Session duration — Time spent on each page
  • Referrer — Where visitors came from
  • UTM parameters — Campaign tracking from URLs
  • Device info — Browser, OS, screen size, language
  • Web Vitals — LCP, FID, CLS, FCP, TTFB
  • Entry pages — Which page visitors land on
  • Outbound links — Clicks on external links
  • Button clicks — Automatically tracked
  • Form submissions — Automatically tracked
  • JavaScript errors — Captured with stack traces

Next steps

Track custom events

Track signups, purchases, and other key actions.

Enable session replay

Watch how users interact with your site.

Framework guides

Framework-specific installation instructions.

Script configuration

Customize tracking behavior with data attributes.