# Clicktag > Website and API analytics at https://clicktag.io. Register a site, install the tracking script or API middleware, and query statistics. Private reports and site management accept a signed-in user's Firebase ID token or a management key (tt_mk_...) with the needed scope; some actions, such as deleting a site, starting historical imports and connecting Google or Cloudflare, need the ID token. Public-site metadata/statistics and collection need neither. Site API keys (tt_...) only authenticate API analytics ingest. Import history only when requested, following the import and migration guides. Collector HTTP 200 does not prove persistence. Read the setup guide before changing a site. ## Documentation - [Quickstart](https://clicktag.io/docs/quickstart.md): Set up free, cookie-free website analytics: sign in with Google, register a hostname, add one latest.js script tag, verify the site automatically and read your first pageview from the stats API. - [Installation](https://clicktag.io/docs/installation.md): Install the Clicktag tracking script in plain HTML, React, Vite or the Next.js App Router: one async latest.js tag, no npm package, single-page app and hash routing, data- settings and CSP rules. - [Custom events](https://clicktag.io/docs/events.md): Track custom events and conversions for free with window.tt_event() in the browser or a JSON POST /events from your server: naming rules, metadata limits, callbacks and the events breakdown API. - [Goals and funnels](https://clicktag.io/docs/goals.md): Free goals and funnel analytics: count conversions by page or custom event, build 2 to 6 step funnels, compare conversion by referrer, entry page and country, and manage goals over the API. - [API analytics](https://clicktag.io/docs/api-analytics.md): Free API analytics for Hono, Express, Fastify, Next.js, Cloudflare Workers and Go: requests, status codes, p50, p95 and p99 latency, errors and consumers per endpoint from one middleware. - [AI crawlers](https://clicktag.io/docs/ai-crawlers.md): Track which AI and search bots crawl your site with a read-only Cloudflare token: GPTBot, ChatGPT-User, ClaudeBot, PerplexityBot, Googlebot and Bingbot, verified hits per bot, page and status code, no code on your site. - [Authentication](https://clicktag.io/docs/authentication.md): Authenticate Clicktag API requests with a Firebase ID token: get an access token, see which requests need one, public versus private sites, site API keys, expiry and 401, 403 and 404 errors. - [Sites](https://clicktag.io/docs/sites.md): Register, verify, list, update and delete websites and APIs with the Clicktag Sites API: hostname rules, the 50-site limit, ownership checks by script tag, DNS TXT or file, and public visibility. - [Statistics](https://clicktag.io/docs/stats.md): Query web analytics as JSON with the Clicktag Stats API: totals, time series, live visitors, breakdowns by page, referrer, country, device and UTM, retention cohorts, overview summary, filters and error codes. - [API requests](https://clicktag.io/docs/api-requests.md): Send API request metrics to POST /api/ingest with a site API key, create and revoke keys, and query per-endpoint requests, p50, p95 and p99 latency, status codes, errors and error samples. - [Historical imports](https://clicktag.io/docs/imports.md): Import historical Simple Analytics data with the Clicktag Imports API: create, list, cancel and retry background jobs that copy pageviews and events in monthly chunks, with limits and statuses. - [Search Console](https://clicktag.io/docs/search-console.md): Connect Google Search Console to Clicktag: sync clicks, impressions, CTR, position, queries, pages, countries and devices, backfill 16 months and keep the history after Google drops it. - [Email reports](https://clicktag.io/docs/email-reports.md): Daily, weekly or monthly stats emails per recipient, with sections, time zones and one-click unsubscribe, plus API alerts by email on error rate, p95 latency and silence. - [Collector](https://clicktag.io/docs/collector.md): Send pageviews, custom events, time on page and scroll depth to the Clicktag collector over HTTP: latest.js, GIF beacons, the noscript pixel, JSON POST /events, field limits and errors. - [AI agent setup](https://clicktag.io/docs/agents.md): Let an AI coding agent install Clicktag with one setup prompt that registers the site over the API, adds one latest.js tag with data-verify, migrates Simple Analytics calls and verifies a real pageview was stored. - [Migrate from Simple Analytics](https://clicktag.io/docs/migrate-simple-analytics.md): Switch from Simple Analytics to Clicktag: keep your script settings, move sa_ globals and queues to tt_, replace Stats API calls and import historical pageviews and events. - [Troubleshooting](https://clicktag.io/docs/troubleshooting.md): Fix missing pageviews and events in Clicktag: unregistered or unverified hostnames, www versus apex, ad blockers, Do Not Track, CSP, processing delays and the 400, 401, 403, 404, 409, 429 and 500 errors. - [Live](https://clicktag.io/docs/live.md): Watch hits arrive in real time for one website or every website you own, check an install with the only-my-traffic switch, and see visitors pulse on a world map. - [Workspace overview](https://clicktag.io/docs/workspace.md): Every site you own added up: visitors, pageviews, online now, top pages and sources across the whole workspace. ## Machine-readable reference - [Complete documentation](https://clicktag.io/llms-full.txt) - [OpenAPI 3.1](https://clicktag.io/openapi.json)