Add the tracker

Add the Kobbe tracker script to your website and verify that pageviews appear in real time.

Add Kobbe to your site by copying the tracker script from your dashboard and pasting it into your website.

For framework and builder-specific steps, see Installation guides.

1. Create a site

  • Sign in to Kobbe
  • Create a site and enter the domain you want to track
  • Copy the site token before leaving the page (it is not shown again after reload)

2. Add the tracker script

The Install section on the same page gives you a Minimal snippet (token only) or an Explicit snippet with data-* attributes. Use Tracking options when you prefer dashboard On / Off toggles instead of editing HTML.

<script
  defer
  data-token="YOUR_SITE_TOKEN"
  src="https://app.kobbe.io/tracker.js"
></script>

The script automatically records a pageview when the page loads.

Use the same snippet on each subdomain you want in this site (for example www, app, or blog). See Track across subdomains.

The default tracker.js is enough for pageviews and custom events. For optional features, use Tracking options in the dashboard or data-* attributes from Script options. Switch to tracker.full.js when you need scroll tracking, cross-domain tracking, or Web Vitals.

See also

3. Verify tracking

  • Open your site in a new tab
  • Return to Kobbe and check the dashboard
  • The visit should appear in real time

If you do not see traffic after a minute:

  • Confirm the script is present in the page source.
  • Confirm the token matches the site you created.
  • Make sure the script is not blocked by a strict Content Security Policy.

4. Track important actions

Pageviews work automatically. To track clicks, signups, purchases, downloads, or other actions, add custom events with HTML attributes or the JavaScript API.

Continue with Custom events.