# 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 `` of your website, or install the package from npm. **Script Tag** ```html ``` **NPM Package** ```javascript import { createTracker } from '@didtheyclick/sdk'; const tracker = createTracker({ websiteId: 'YOUR_API_KEY', endpoint: 'https://www.didthey.click/api/collect' }); ``` > **Warning: 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. > **Tip: 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 > **Related: Track what matters** > > Go beyond pageviews — track signups, checkouts, and clicks with custom events.