Documentation

Getting started

Set up didthey.click on your website in a few minutes. Pageviews are tracked automatically — no configuration needed beyond adding the snippet.

1. Create a project

Sign up and create a project for your website. Each project gets its own API key — you'll find it in your project settings. It's the value you'll use as `YOUR_API_KEY` below.

2. Install the tracking script

Add the snippet to the <head> of your website.

Install

<script
  defer
  src="https://www.didthey.click/sdk/tracker.js"
  data-website-id="YOUR_API_KEY"
></script>

Use the www host

Always load the script from https://www.didthey.click. The apex domain redirects, which breaks CORS on some platforms.

The script tag also supports a few optional attributes:

  • data-endpoint — send events to a custom endpoint (e.g. a first-party proxy)
  • data-auto-pageview="false" — disable automatic pageview tracking
  • data-debug="true" — log tracker activity to the browser console

3. Verify your installation

Visit your website, then open your project dashboard. Your visit should appear within a few seconds.

Pageviews are automatic

The tracker records pageviews out of the box, including client-side navigations in single-page apps. UTM parameters and ad click IDs are captured automatically on the first pageview.

4. Next steps

Track what matters

Go beyond pageviews — track signups, checkouts, and clicks with custom events.