Revenue Attribution
Reaudit Tracking Script
Install the lightweight tracking script to capture first-party visitor, referrer, and bot data.
The Reaudit tracking script is a first-party analytics solution that runs on your website. Unlike GA4 (which can be blocked by ad blockers), the tracking script captures every visit directly — giving you more accurate data.
What It Tracks
- Unique visitors (via anonymous visitor ID)
- Referrer domain (where the visitor came from)
- AI referrals (visitors from Perplexity, ChatGPT, etc.)
- AI bot crawls (GPTBot, ClaudeBot, etc.)
- Page URL and timestamp
Installation Options
Standard HTML Websites
Copy the tracking script from Tools and paste it into the section of every page. The script is lightweight (~2KB) and loads asynchronously so it does not affect page speed.
React / Next.js
For React-based sites, use the Reaudit React tracking component instead of the raw script tag. This integrates with Next.js SSR and client-side navigation. See the React Tracking setup page in Tools for the component code.
WordPress
Paste the script tag into your WordPress theme's header.php or use a plugin like "Insert Headers and Footers" to add it site-wide.
Cloudflare Workers
If you use Cloudflare, you can inject the tracking script via a Cloudflare Worker, so it works on any origin without modifying your site's code.
Use Alongside GA4
The tracking script does not conflict with GA4 or other analytics tools. Run them side by side for the most complete coverage — GA4 provides rich session data while the tracking script provides un-blockable first-party data.