Install the Atribusi tracker
Add this snippet before the closing body tag on every page you want to measure:
<script
async
id="a-tracker"
data-api-key="YOUR_API_KEY"
data-api-host="https://app.atribusi.com/api"
src="https://atribusi.com/tracker/tracker.min.js"
></script>Copy the API key from Websites, then your site. Replace YOUR_API_KEY with that value.
Optional attributes
data-track-local-host="true"also tracks localhost.data-scl="true"shows a small Powered by Atribusi badge.
What starts on load
The tracker starts on load unless the visitor is a bot. It then:
- Creates a visitor cookie and a session
- Sends pageviews on load and on SPA navigations
- Tracks outbound link clicks by default
Open Overview in the app after you deploy. You should see pageviews within a few seconds.
