Overview
The UX Brite tracker is a lightweight JavaScript snippet (~2KB) that you add to your website once. It automatically captures pageviews, clicks, form submissions, scroll depth, and session recordings — sending everything to your GTM Suite dashboard in real time.The tracker is loaded asynchronously and does not block page rendering or affect Core Web Vitals.
Step 1: Get Your Tracking ID
- In GTM Suite, go to Digital Experiences and open the experience you want to track (or create a new one)
- Copy your Tracking ID — it looks like
UXB-XXXXXXXX
Step 2: Add the Snippet
Paste the following snippet inside the<head> tag of every page on your website:
UXB-XXXXXXXX with your actual Tracking ID.
Step 3: Deploy and Verify
- Deploy your changes to production (or a publicly accessible URL)
- Return to GTM Suite and open your Digital Experience
- Click Check Status — the badge will turn green once the tracker is detected
What Gets Tracked Automatically
Once installed, the tracker captures the following out of the box — no additional configuration needed:| Event | Description |
|---|---|
| Page views | Every page load and navigation |
| Clicks | All element clicks, including links and buttons |
| Form submissions | When a visitor submits any form |
| Scroll depth | Milestones at 25%, 50%, 75%, 90%, and 100% |
| Outbound links | Clicks that navigate away from your site |
| JavaScript errors | Uncaught errors on the page |
| Session recording | Full DOM replay via rrweb (enabled by default) |
Configuration Options
You can customize tracker behavior usingdata-* attributes on the script tag:
| Attribute | Default | Description |
|---|---|---|
data-id | — | Required. Your Tracking ID |
data-record | "true" | Set to "false" to disable session recording |
data-debug | "false" | Set to "true" to log tracker activity to the browser console |
Custom Events
Track actions that matter to your business — product interactions, video plays, pricing page views — with a single API call:Identify Users
If you know who a visitor is (e.g., after login), associate their session with a user ID:Framework-Specific Setup
Next.js / React
Next.js / React
Add the snippet using
next/script with the afterInteractive strategy:Google Tag Manager
Google Tag Manager
- In GTM, create a new Custom HTML tag
- Paste the snippet into the HTML field
- Set the trigger to All Pages
- Save and publish your container
WordPress
WordPress
Add the snippet to your theme’s
header.php just before the closing </head> tag, or use a plugin like Insert Headers and Footers to avoid editing theme files directly.Webflow
Webflow
Go to Project Settings → Custom Code and paste the snippet into the Head Code section. Click Save and publish your site.
Troubleshooting
Status shows “Not Detected” after deploying- Confirm the snippet is in the rendered HTML (DevTools → Sources)
- Ensure
data-idmatches your Tracking ID exactly - The page must be publicly accessible
- Add
data-record="false"to the snippet on those specific pages
- Add
data-debug="true"— the tracker will log all events to the browser console

