---
title: "Install guides"
description: "Add DataPocket to Next.js, Astro, WordPress, Shopify, Webflow and 20 more platforms, with first-party proxy setups that ad blockers can't stop."
url: "https://datapocket.vo1d.studio/docs"
lang: "en"
updated: "2026-11-23"
---

# Install guides

DataPocket works anywhere you can add a script tag. Guides marked "ad-block proof" proxy the script through your own domain.

## Code

- [Next.js](https://datapocket.vo1d.studio/docs/nextjs): App Router or Pages Router. Client-side navigations are tracked automatically.
- [Astro](https://datapocket.vo1d.studio/docs/astro): Static or server-rendered. Navigations with <ClientRouter /> (view transitions) are tracked automatically.
- [React Router](https://datapocket.vo1d.studio/docs/react-router): Framework mode (Remix) and library mode. pushState navigations are tracked automatically.
- [Vue.js](https://datapocket.vo1d.studio/docs/vue): Vue 3 + Vue Router, Nuxt, Vite. History-mode routing is tracked automatically.
- [JavaScript apps](https://datapocket.vo1d.studio/docs/npm): React, Vue, Svelte or Angular: the script tag with typed calls, plus server-side payments and goals over HTTP.
- [Express](https://datapocket.vo1d.studio/docs/express): Serve the script and forward events from your Express server.
- [FastAPI](https://datapocket.vo1d.studio/docs/fastapi): Async proxy with httpx.
- [Flask](https://datapocket.vo1d.studio/docs/flask): Proxy with requests.
- [Django](https://datapocket.vo1d.studio/docs/django): Two views and two URL patterns.
- [Laravel](https://datapocket.vo1d.studio/docs/laravel): Routes with the Http client, excluded from CSRF.
- [PHP](https://datapocket.vo1d.studio/docs/php): One file, no framework, no rewrites.
- [NGINX](https://datapocket.vo1d.studio/docs/nginx): Two location blocks in your server config.
- [Caddy](https://datapocket.vo1d.studio/docs/caddy): A single handle block. Caddy sets X-Forwarded-For for you.

## No-code

- [Google Tag Manager](https://datapocket.vo1d.studio/docs/gtm): A Custom HTML tag on All Pages.
- [Framer](https://datapocket.vo1d.studio/docs/framer): Site Settings → General → Custom Code.
- [Wix](https://datapocket.vo1d.studio/docs/wix): Settings → Custom Code (needs a Premium plan and a connected domain).
- [Webflow](https://datapocket.vo1d.studio/docs/webflow): Site Settings → Custom Code → Head code (paid site plan).
- [Bubble](https://datapocket.vo1d.studio/docs/bubble): Settings → SEO/metatags → Script/meta tags in header (paid plan).
- [Squarespace](https://datapocket.vo1d.studio/docs/squarespace): Settings → Advanced → Code Injection → Header (Core plan or higher).
- [WordPress](https://datapocket.vo1d.studio/docs/wordpress): Official plugin: tracking, built-in proxy, WooCommerce revenue.
- [Shopify](https://datapocket.vo1d.studio/docs/shopify): Theme snippet for the storefront, plus a custom pixel for checkout and verified order revenue.
- [Ghost](https://datapocket.vo1d.studio/docs/ghost): Settings → Code injection → Site header.
- [Kajabi](https://datapocket.vo1d.studio/docs/kajabi): Theme Settings → Header code.
- [Podia](https://datapocket.vo1d.studio/docs/podia): Site → Settings → Advanced → Custom HTML head code.
- [Lovable](https://datapocket.vo1d.studio/docs/lovable): Paste one prompt. Also works with Bolt, v0 and Replit.

## Comparisons

All of them: https://datapocket.vo1d.studio/compare

- [DataPocket vs Google Analytics 4](https://datapocket.vo1d.studio/compare/google-analytics): DataPocket and Google Analytics 4 compared: price, traffic limits, revenue by channel, data history, and when each one is the better pick.
- [DataPocket vs Plausible](https://datapocket.vo1d.studio/compare/plausible): DataPocket and Plausible compared: price, traffic limits, revenue by channel, self-hosting, and when each one is the better pick.
- [DataPocket vs DataFast](https://datapocket.vo1d.studio/compare/datafast): DataPocket and DataFast compared: price, traffic limits, revenue integrations, data history, and when each one is the better pick.
- [DataPocket vs Fathom Analytics](https://datapocket.vo1d.studio/compare/fathom): 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](https://datapocket.vo1d.studio/compare/simple-analytics): 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](https://datapocket.vo1d.studio/compare/umami): 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 of them: https://datapocket.vo1d.studio/guides

- [How to see which traffic sources make money](https://datapocket.vo1d.studio/guides/revenue-by-traffic-source): Connect your payments to your analytics so every channel, referrer, campaign and page shows the revenue it brought, not just visits. Free with DataPocket.
- [Track Stripe revenue by traffic source](https://datapocket.vo1d.studio/guides/stripe-revenue-attribution): See which channels, referrers and campaigns bring Stripe customers. Works with Stripe Checkout and Payment Links without code, or with Checkout Session metadata.
- [How to see traffic from ChatGPT, Perplexity and other AI assistants](https://datapocket.vo1d.studio/guides/chatgpt-traffic): Measure the visitors ChatGPT, Perplexity, Claude, Gemini and Copilot send you, the revenue they bring, and which pages the assistants read to answer questions.
- [SEO score, Core Web Vitals and missing pages, from your own traffic](https://datapocket.vo1d.studio/guides/seo-audit): 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 of them: https://datapocket.vo1d.studio/reference

- [Tracking script reference](https://datapocket.vo1d.studio/reference/tracking-script): 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.
- [First-party proxy: what to forward](https://datapocket.vo1d.studio/reference/first-party-proxy): 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.
- [REST API: payments and goals](https://datapocket.vo1d.studio/reference/rest-api): The DataPocket Payment API and server-side goals: authentication, every field, idempotency, currencies, how payments find their visitor, responses and errors.
- [Read API: stats, visitors, funnels and insights](https://datapocket.vo1d.studio/reference/read-api): 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.
- [MCP server: your analytics in Claude, Cursor and other AI assistants](https://datapocket.vo1d.studio/reference/mcp): 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.

## More

- [AI crawler tracking](https://datapocket.vo1d.studio/docs/ai-bots): see when ChatGPT, Claude and Perplexity fetch your pages, plus search and training crawlers. One server-side call.
- [All guides in one file](https://datapocket.vo1d.studio/llms-full.txt) for AI assistants.
