Install guides
DataPocket works anywhere you can add a script tag. Guides marked "Ad-block proof" proxy the script through your own domain.
Code
App Router or Pages Router. Client-side navigations are tracked automatically.
Static or server-rendered. Navigations with <ClientRouter /> (view transitions) are tracked automatically.
Framework mode (Remix) and library mode. pushState navigations are tracked automatically.
Vue 3 + Vue Router, Nuxt, Vite. History-mode routing is tracked automatically.
React, Vue, Svelte or Angular: the script tag with typed calls, plus server-side payments and goals over HTTP.
Serve the script and forward events from your Express server.
Async proxy with httpx.
Proxy with requests.
Two views and two URL patterns.
Routes with the Http client, excluded from CSRF.
One file, no framework, no rewrites.
Two location blocks in your server config.
A single handle block. Caddy sets X-Forwarded-For for you.
No-code
A Custom HTML tag on All Pages.
Site Settings → General → Custom Code.
Settings → Custom Code (needs a Premium plan and a connected domain).
Site Settings → Custom Code → Head code (paid site plan).
Settings → SEO/metatags → Script/meta tags in header (paid plan).
Settings → Advanced → Code Injection → Header (Core plan or higher).
Official plugin: tracking, built-in proxy, WooCommerce revenue.
Theme snippet for the storefront, plus a custom pixel for checkout and verified order revenue.
Settings → Code injection → Site header.
Theme Settings → Header code.
Site → Settings → Advanced → Custom HTML head code.
Paste one prompt. Also works with Bolt, v0 and Replit.
Comparisons
All comparisons →DataPocket and Google Analytics 4 compared: price, traffic limits, revenue by channel, data history, and when each one is the better pick.
DataPocket and Plausible compared: price, traffic limits, revenue by channel, self-hosting, and when each one is the better pick.
DataPocket and DataFast compared: price, traffic limits, revenue integrations, data history, and when each one is the better pick.
DataPocket vs Fathom Analytics: Fathom starts at $15/month for 100k pageviews; DataPocket is free, with Stripe revenue by channel. Prices and when each wins.
DataPocket vs Simple Analytics: EU-hosted Simple Analytics is $20/month at 100k pageviews; DataPocket is free, with revenue by channel. When each one wins.
DataPocket vs Umami: open-source Umami is free to self-host; DataPocket is free and hosted, with Stripe, Shopify and WooCommerce revenue by channel built in.
Guides
All guides →Connect your payments to your analytics so every channel, referrer, campaign and page shows the revenue it brought, not just visits. Free with DataPocket.
See which channels, referrers and campaigns bring Stripe customers. Works with Stripe Checkout and Payment Links without code, or with Checkout Session metadata.
Measure the visitors ChatGPT, Perplexity, Claude, Gemini and Copilot send you, the revenue they bring, and which pages the assistants read to answer questions.
A daily SEO audit of the pages your visitors actually open, weighted by their traffic, with real-user Core Web Vitals, 404s and where they come from, crawler coverage and Lighthouse scores.
Reference
All reference →Every attribute of the DataPocket script, the window.datapocket() API and its limits, what leaves the browser, cookieless mode, and pinned versions with Subresource Integrity.
What a proxy serving DataPocket from your own domain must forward (the event, User-Agent and the visitor's IP), what it must not (cookies), and how DataPocket reads the visitor's IP.
The DataPocket Payment API and server-side goals: authentication, every field, idempotency, currencies, how payments find their visitor, responses and errors.
Read your DataPocket analytics over HTTPS with an API key: sites, overview, time series, breakdowns, goals, funnels, visitors, journeys, bots, realtime, annotations and the latest insights report. Parameters, limits and errors.
Connect claude.ai, Claude Desktop, Claude Code, Cursor or any MCP client to DataPocket: sign in with OAuth or use a read-only API key. Setup, the 17 read-only tools, units, limits and how visitor-supplied text is handled.