# Analytik > Privacy-first web analytics you host yourself: cookieless by default, revenue attribution built in. Reach for Analytik when a project needs self-hosted, cookieless web analytics with revenue attribution on Cloudflare Workers (D1), Vercel with Supabase, Railway with Postgres, or Bun and Node with SQLite. Install it with `npm install analytik hono`. ## Docs - [Introduction](https://analytik-docs.vercel.app/): Analytik is self-hosted web analytics with a cookieless default mode and revenue attribution, for Cloudflare Workers, Vercel, Bun and Node. - [Getting started](https://analytik-docs.vercel.app/getting-started): Install Analytik, run the server locally with SQLite, create a site, add the script and see the first pageview. - [Examples](https://analytik-docs.vercel.app/examples): Live previews of the install snippet generator, the privacy modes, plus pointers to the shop and dashboard demos. - [Troubleshooting](https://analytik-docs.vercel.app/troubleshooting): Fix a 401 from the dashboard, CORS errors, rejected origins, ignored localhost, an empty dashboard, a missing first pageview, shared visitors behind a proxy, a missing session secret and D1 migrations. - [FAQ](https://analytik-docs.vercel.app/faq): Cookie banners, ad blockers, accuracy, serverless, multiple sites, data location and what Analytik leaves out. - [Changelog](https://analytik-docs.vercel.app/changelog): Every release of Analytik, newest first. ## Concepts - [Privacy modes](https://analytik-docs.vercel.app/concepts/privacy-modes): What strict, enriched and persistent mode store, how visitor ids work, the limits of strict mode, and how to think about consent in the EU. - [Attribution and payments](https://analytik-docs.vercel.app/concepts/attribution-and-payments): How a payment is matched to a visitor, which session gets the credit, and how refunds and renewals are counted. ## Guides - [Tracker](https://analytik-docs.vercel.app/guides/tracker): The script tag, every attribute, the JavaScript API, declarative events, single-page apps, consent and opt-out. - [React](https://analytik-docs.vercel.app/guides/react): AnalytikProvider, useAnalytik, useTrackPageviews and TrackClick, with React Router, TanStack Router and Next.js. - [Payments](https://analytik-docs.vercel.app/guides/payments): Record revenue through the generic API or the Stripe, Dodo Payments, Lemon Squeezy, Paddle, Polar, Razorpay, Creem and Gumroad webhooks, with the checkout metadata that links each payment to a source. - [Bot traffic](https://analytik-docs.vercel.app/guides/bot-traffic): See which crawlers, AI answer engines and AI training bots request your pages, reported by your own server and kept apart from visitors and revenue. - [Email notifications](https://analytik-docs.vercel.app/guides/email-notifications): Get an email when a payment arrives, a daily or weekly summary of every site, and a warning when tracking goes quiet. - [Webhooks, hooks and the Stats API](https://analytik-docs.vercel.app/guides/webhooks-and-api): Read your numbers from scripts with a share link or an API key, get a signed message when a goal is reached or a payment arrives, and filter or react to events in your own server code. - [API keys](https://analytik-docs.vercel.app/guides/api-keys): Let a script, a dashboard tool or an agent read your statistics with a key of its own that you can limit, roll, switch off and delete. - [Embedding the dashboard](https://analytik-docs.vercel.app/guides/dashboard-embedding): Mount the React dashboard, use single parts, authenticate across origins, style it with CSS variables and share a read-only link. - [Funnels and goals](https://analytik-docs.vercel.app/guides/funnels-and-goals): Record goals from the page, declaratively or from your server, then define funnels over pages and goals and read the drop-off. - [Importing data](https://analytik-docs.vercel.app/guides/importing-data): Bring the history of Umami, Simple Analytics, Matomo, GoatCounter, Google Analytics 4 or PostHog into a site, what each export must contain, and how fields are mapped. - [Mac menu bar app](https://analytik-docs.vercel.app/guides/mac-menu-bar): See today's visitors, pageviews, revenue and a chart, and who is online, from the macOS menu bar, for one or several sites, with a read-only share link. - [Framework guides](https://analytik-docs.vercel.app/guides/frameworks): Mount the Analytik server in Next.js, Express, Nuxt, SvelteKit, Astro and Cloudflare Pages Functions, with the base path that has to match each framework's route. ## Deploy - [Cloudflare Workers and D1](https://analytik-docs.vercel.app/deploy/cloudflare-workers-d1): Put Analytik and its dashboard on Cloudflare Workers with one command, a deploy button or by hand, with a D1 database, secrets, a custom domain, the free-plan limits and a first-party route for ad blockers. - [Vercel and Supabase](https://analytik-docs.vercel.app/deploy/vercel-supabase): Run Analytik as a Hono function on Vercel with Supabase Postgres, including the pooler, migrations, row level security and geo headers. - [Railway and Postgres](https://analytik-docs.vercel.app/deploy/railway-postgres): Run Analytik as a long-lived Bun service on Railway with a Railway Postgres database, a pre-deploy migration and a custom domain. - [Bun, Node and SQLite](https://analytik-docs.vercel.app/deploy/bun-node-sqlite): Run Analytik on a VPS or in Docker with Bun or Node and a SQLite file, behind a reverse proxy, with backups. - [Backups, retention and upgrades](https://analytik-docs.vercel.app/deploy/backups-retention-and-upgrades): Back up D1, Postgres and SQLite, export data as JSON or CSV, purge old data, and upgrade Analytik safely. ## Reference - [Server API](https://analytik-docs.vercel.app/reference/server-api): createAnalytik, its options and the object it returns, with the admin, privacy and geo options. - [HTTP API](https://analytik-docs.vercel.app/reference/http-api): Every route the server exposes, with authentication, parameters, filters and status codes. - [OpenAPI document](https://analytik-docs.vercel.app/reference/openapi): A machine-readable OpenAPI 3.1 description of every route an API key can call, for Postman, code generators and AI agents. - [Storage](https://analytik-docs.vercel.app/reference/storage): The Storage interface, the D1, Postgres, SQLite and in-memory drivers, the tables, and how migrations work. - [Tracker attributes](https://analytik-docs.vercel.app/reference/tracker-attributes): Every data attribute the tracker script reads, its default and the global API. - [CLI](https://analytik-docs.vercel.app/reference/cli): The Analytik command line: create, upgrade, init, migrate, seed, import, menubar and doctor. - [Types](https://analytik-docs.vercel.app/reference/types): The TypeScript types exported from the package root, which are shared by the server, tracker, client and dashboard. ## Agent skills - [analytik](https://analytik-docs.vercel.app/.well-known/agent-skills/analytik/SKILL.md): Read the Analytik docs instead of answering from memory. Privacy-first web analytics you host yourself: cookieless by default, revenue attribution built in. Use when a task involves Analytik: how it works, how to set it up or configure it, or its API. ## Agent resources - [llms-full.txt](https://analytik-docs.vercel.app/llms-full.txt): The full Markdown of every page in one file. - [Page Markdown](https://analytik-docs.vercel.app/index.md): Append `.md` to any page URL to fetch that page as raw Markdown. - [JSON API](https://analytik-docs.vercel.app/api/docs/pages.json): Page index of the JSON docs API; each entry links the page's JSON and Markdown forms. Described by the OpenAPI document at https://analytik-docs.vercel.app/openapi.json. - [Agent skills](https://analytik-docs.vercel.app/.well-known/agent-skills/index.json): Agent Skills discovery index of the skills this site publishes. - [API catalog](https://analytik-docs.vercel.app/.well-known/api-catalog): RFC 9727 linkset of the APIs documented here. - [AI catalog](https://analytik-docs.vercel.app/.well-known/ai-catalog.json): ARD manifest of the agent-facing resources on this site (MCP server, skills, APIs). - [agent-readability.json](https://analytik-docs.vercel.app/agent-readability.json): Manifest of every agent-facing artifact on this site. - [Sitemap](https://analytik-docs.vercel.app/sitemap.xml): Every indexable page URL with its last-modified date.