Guides
Guides
Set up Dataflare in your framework, or go deeper on one topic.
By framework
Next.js
Add analytics to a Next.js app with Dataflare: open-source web and product analytics, session replay and A/B tests that run in your own Cloudflare account. Step-by-step setup.
Astro
Add analytics to a Astro app with Dataflare: open-source web and product analytics, session replay and A/B tests that run in your own Cloudflare account. Step-by-step setup.
SvelteKit
Add analytics to a SvelteKit app with Dataflare: open-source web and product analytics, session replay and A/B tests that run in your own Cloudflare account. Step-by-step setup.
Nuxt
Add analytics to a Nuxt app with Dataflare: open-source web and product analytics, session replay and A/B tests that run in your own Cloudflare account. Step-by-step setup.
Remix / React Router
Add analytics to a Remix / React Router app with Dataflare: open-source web and product analytics, session replay and A/B tests that run in your own Cloudflare account. Step-by-step setup.
Vite
Add analytics to a Vite app with Dataflare: open-source web and product analytics, session replay and A/B tests that run in your own Cloudflare account. Step-by-step setup.
Plain HTML
Add analytics to a Plain HTML app with Dataflare: open-source web and product analytics, session replay and A/B tests that run in your own Cloudflare account. Step-by-step setup.
Cloudflare Worker / server-side
Add analytics to a Cloudflare Worker / server-side app with Dataflare: open-source web and product analytics, session replay and A/B tests that run in your own Cloudflare account. Step-by-step setup.
Topics
With your coding agent
Let your coding agent install analytics, track events and answer questions about your users. Dataflare writes agent instructions and an MCP server config at install.
Cookieless analytics
How Dataflare counts visitors without cookies or local storage: a daily-rotating salted hash in your own Cloudflare Worker. What works, what needs consent, and how to switch.
Replays agents can read
Dataflare session replay comes with a text transcript of every session: pages, clicks with CSS selectors, rage and dead clicks, errors with stack frames and failed requests. Agents read it through MCP.
A/B tests on Cloudflare
Run feature flags and A/B tests from your own Cloudflare Worker with Dataflare: server-side evaluation, targeting rules, Bayesian results and sample-ratio checks.
Self-hosted without servers
Self-host analytics with no servers, Docker or database to manage: Dataflare is a Cloudflare Worker, a D1 database and an R2 bucket in your own account, deployed with one command and upgraded from CI.