01Getting started
Introduction
What InsightFlare is, what it measures, and how the pieces fit together.
InsightFlare is an open-source web analytics platform that you deploy to your own Cloudflare account. The infrastructure and the data are yours, and no third-party analytics account is needed.
What you get
- Traffic and acquisition. Page views, visitors, sessions, bounce rate, average duration, referrers, traffic channels, and UTM campaigns.
- Behavior. Sessions, visitors, custom events with structured payloads, funnels, goals, and retention cohorts.
- Audience. Country, region, and city, plus devices, operating systems, screen sizes, and browsers.
- Live and performance data. A real-time view of the last 30 minutes and sampled Web performance metrics (TTFB, FCP, LCP, CLS, INP).
- Filtering. A visual filter builder and a text filter language that work at event, session, and visitor scope, with saved and shared filters.
- Operations. Request observability and bot protection, blocking rules, teams and roles, public sharing links, API keys, email and in-app notifications, and scheduled tasks.
- AI and API access. A versioned HTTP API with an OpenAPI document, and a skills manifest that AI agents can read.
- Languages. The dashboard is available in English, Simplified Chinese, Traditional Chinese, and Japanese.
How it works
- A small script, served by your own instance at
/script.js, runs on your website. It sends page views, leave events, and custom events to your instance's/collectendpoint. - A Durable Object buffers incoming events and flushes them to a D1 database.
- Scheduled tasks (a Worker cron trigger runs every 30 minutes) build hourly rollups, evaluate notification rules, and perform database maintenance.
- The dashboard reads from D1 and presents the results. Site settings, such as tracking strength and blocking rules, are stored in KV and applied to the script and to the collector.
- Optionally, Analytics Engine datasets record request-level data for the Request Observability page.