Install the tracker

Add the tracker before the closing body tag on every page. Copy the API key from Websites, then your site.

<script
  async
  id="a-tracker"
  data-api-key="YOUR_API_KEY"
  data-api-host="https://app.atribusi.com/api"
  data-domain="example.com"
  data-scl="false"
  src="https://atribusi.com/tracker/tracker.min.js"
></script>

Optional attributes:

  • data-domain="example.com" sets the parent domain so all subdomains share one visitor cookie
  • data-track-local-host="true" also tracks localhost
  • data-scl="false" is the default. Set data-scl="true" to show a small Powered by Atribusi badge
  • data-session-replay="true" records session replay
  • data-cookieless="true" keeps the visitor ID in memory for the current tab

Paste the same snippet on the parent domain and on every subdomain. Register example.com and the tracker counts www.example.com and blog.example.com as one site. Visitors keep one cookie on the parent domain, so a click from www to blog stays in the same session.

The tracker starts on load unless the visitor is a bot. It creates a visitor cookie (user id, 2 years) and a session (30-minute idle timeout), sends pageviews on load and SPA navigations, and tracks outbound link clicks. A new campaign also starts a new session.

Read the install how-to. Open Overview after you deploy. Pageviews should appear within a few seconds.