Pageview Tracking
Once the tracking script is installed, Attri automatically captures a pageview event every time someone loads a page on your website. No extra setup needed.
What’s captured
Section titled “What’s captured”Each pageview event includes:
| Field | Description |
|---|---|
| Page URL | The full URL of the page visited |
| Page title | The document title |
| Referrer | The previous page URL |
| UTM parameters | Any UTM values present in the URL |
| Timestamp | When the pageview occurred |
| Session ID | A first-party session identifier |
We’ve been deliberate about keeping this list focused. You get everything you need for attribution without collecting anything you shouldn’t.
Session handling
Section titled “Session handling”Attri uses a first-party cookie to maintain session identity across pages. A session expires after 30 minutes of inactivity. No third-party cookies are used.
When a visitor arrives via an Attri shortlink, the UTM parameters from that link are stored in the session. Subsequent pageviews within the same session are attributed to the original link, even if the UTM parameters are no longer in the URL. This is how we make sure you don’t lose attribution when visitors navigate around your site (which, let’s be honest, is the whole point).
Single-page apps
Section titled “Single-page apps”For single-page applications (React, Vue, Next.js, etc.), the tracking script detects route changes via the History API and sends pageview events automatically. No additional configuration is needed.
- Pageview events are counted toward your plan’s usage quota
- The script respects Do Not Track browser settings when enabled
- No personally identifiable information (PII) is collected