Analytics built
for developers

You care about page speed. You do not want to add 45 KB of JavaScript to track pageviews. You want an API, not a dashboard you have to click through. sourcebeam is analytics the way developers would build it — minimal, fast, and programmable.

<1 KB

Gzipped script

0

npm packages

0

Build step changes

Under 1 KB, no build step

The entire tracking script is smaller than most favicons. sourcebeam's tracking script weighs less than 1 KB gzipped. It is a single, self-contained file — no npm package to install, no build step to configure, no SDK to initialize with API keys and configuration objects. One script tag in your HTML and you are tracking visitors, pageviews, sessions, referrers, devices, and countries.

Compare that to the alternatives. Google Analytics: 45+ KB, requires a tag manager for advanced features. PostHog: 60+ KB, includes autocapture, session recording, and feature flag logic you probably do not need. Mixpanel: 30+ KB, requires SDK initialization and custom event instrumentation. Even privacy-focused tools like Fathom (6 KB) and Simple Analytics (6 KB) are significantly heavier.

For developers who obsess over Lighthouse scores, optimize time-to-interactive, and count every kilobyte in their bundle — sourcebeam is the lightest production-ready analytics script available.

index.html
<!-- One line. That's it. -->
<script defer
src="https://srcbeam.com/sb.js"
data-site="YOUR_SITE_ID" />

Under 1 KB. No npm packages. No build step.

One line of code

No configuration, no initialization, no event taxonomy. Add the script tag to your HTML. That is the entire setup. sourcebeam automatically detects pageviews, tracks sessions with duration and bounce rate, captures referrer data and UTM parameters, identifies device type and browser, and records country and language. There is no analytics.init() call, no configuration object, no event naming conventions to design.

This matters because analytics setup is typically a yak-shaving exercise. You start by adding a tracking script, then you need to configure a tag manager, then define your event schema, then set up custom dimensions, then create segments, then build reports. An hour later, you still have not shipped the feature you were working on. sourcebeam takes 30 seconds and then you are done — permanently.

Works with everything. Static sites, Next.js, Remix, Astro, SvelteKit, Rails, Django, Laravel, plain HTML — if it renders in a browser, sourcebeam works. No framework-specific packages, no SSR compatibility issues, no hydration conflicts. The script tag approach is universal by design.

API-first design

Read-only API for everything. Every piece of data visible in the sourcebeam dashboard is available through a read-only API. Visitor counts, session data, pageview breakdowns, traffic sources, device metrics, conversion rates, revenue attribution — all accessible programmatically with your API token. Build custom dashboards, integrate with your existing tools, or pipe data into your own systems.

Designed for LLM consumption. The API response format is optimized for AI assistants. Connect it to Claude, ChatGPT, or any LLM-powered tool and query your analytics in natural language. "How many unique visitors did my docs site get this week?" "What is the bounce rate trend for my landing page over the last 30 days?" "Which GitHub referral links drive the most traffic?"

For developers building AI-powered products, internal tools, or automated reporting workflows, this API-first approach means sourcebeam fits into your existing stack without friction. No scraping dashboards, no exporting CSVs, no building custom integrations around rate-limited APIs that were not designed for programmatic access.

Every piece of data in the dashboard is available through a read-only API. Connect it to Claude, ChatGPT, or build custom dashboards — your data, your way.

Custom events and conversion goals

Track what matters to your project. Beyond automatic pageview tracking, sourcebeam supports custom events for actions that matter to your specific project. Track form submissions, button clicks, file downloads, or any user interaction. Events are sent with a simple JavaScript call — no SDK initialization, no event schema registration.

Conversion goals with automatic attribution. Define goals in the dashboard — a specific page visit, a custom event, or a revenue threshold — and sourcebeam automatically tracks conversion rates across all traffic sources. You can see that visitors from Hacker News convert at 2.1% while visitors from your Twitter profile convert at 5.3%, without building funnels or writing queries.

Privacy as engineering, not policy

No cookies. No personal data. No consent banner. sourcebeam achieves visitor-level analytics through privacy-respecting methods — no first-party cookies, no third-party cookies, no localStorage abuse, no canvas fingerprinting. Visitor recognition uses hashed, non-reversible identifiers that cannot be tied to personal information.

For developers, this means your analytics do not add GDPR compliance requirements to your project. No consent management platform to integrate, no cookie policy to maintain, no data processing agreement to sign. sourcebeam is compliant with GDPR, CCPA, and PECR by design — not through configuration.

Your data is not the product. sourcebeam does not resell your analytics data, does not build advertising profiles from your visitors, and does not share data with third parties. This is not a free tool subsidized by surveillance — it is a paid product with a generous free tier. The business model is straightforward: you pay for the events you track.

Perfect for side projects and open source

Plans start at $5/month. No trial expiry, no feature restrictions, and no bloated setup. For a personal blog, a documentation site, an open source project page, or an early-stage product, that keeps analytics affordable from day one.

Pricing stays simple and predictable as traffic grows: a flat base fee plus a per-event rate. No "Contact Sales" tier, no annual commitments, no surprise bills. You can predict your cost from your traffic volume, and your bill scales linearly with your usage.

Get started

Starts at $5/month. Takes 30 seconds.