Skip to content
measure

Cookieless analytics in 2026: why it matters and how to set it up

Cookie consent banners hurt your conversion rate and your data quality. How cookieless analytics works, why it suits most developer products, and how to switch today.

Privacy5 min readBy Measure team

Somewhere between GDPR in 2018 and the deprecation of third-party cookies in Chrome, the web analytics industry quietly split in two. On one side: the old model of drop a script, collect everything, deal with consent later. On the other: cookieless analytics tools that don’t need a cookie banner in the first place.

If you’re still running the old model, here’s why it’s costing you more than you think — and how to switch.

What “cookieless” actually means

Traditional analytics tools use first-party cookies to track individual users across sessions. A cookie is written to the browser on first visit, and every subsequent visit is tied to that same identifier. This lets them build session models, cross-session funnels, and user-level reports.

The catch: in the EU and UK, setting non-essential cookies generally requires consent, and privacy laws elsewhere increasingly regulate them too. The moment you drop an analytics cookie, you’re in banner territory.

Cookieless analytics does something different. Instead of writing a cookie, it counts visitors from the request itself. In Measure’s case, request signals are combined with a salt that rotates every day into a one-way hash; the raw IP address and user-agent string are never stored, and the hash can’t be linked across days.

The result: page view counts, referrer attribution, and traffic trends — without cookies, without anything stored on the visitor’s device, and without a cookie banner for analytics.

Developers tend to see consent banners as a legal checkbox. They’re actually a revenue problem.

A standard cookie consent banner reduces analytics data collection by 30–60%. That’s not a rounding error — that’s a coin flip on whether your data reflects your actual traffic. In some EU markets, opt-out rates exceed 70%.

What this means in practice:

  • Your conversion data is structurally incomplete
  • SEO improvements show as smaller gains than they are
  • A/B tests run on biased subsets (users who opted in skew toward certain demographics)
  • You ship features based on data that doesn’t represent your full user base

Beyond the data quality problem, banners degrade first impressions. For a developer tool or SaaS product, showing a cookie wall before the user has seen your product is a conversion problem disguised as a legal problem.

Cookieless analytics removes this for analytics. No banner, no opt-out gap, no data skew.

What it means in practice

The design principles behind cookieless analytics:

  • No cookies or persistent identifiers on the visitor’s device
  • No IP storage: the IP is used only to compute the daily hash, then dropped
  • No cross-site tracking: data stays scoped to your domain only
  • No PII: names, emails, and user IDs are never collected at the analytics layer

Measure.events is designed around this model from the ground up. The tracking script does not set any cookies. It does not store IP addresses or user-agent strings. It does not track users across domains. It also separates humans from AI agents (ChatGPT-User, ClaudeBot, PerplexityBot) and bots, so automated traffic doesn’t pad your numbers.

That means you don’t need a cookie banner for Measure on an EU-facing product — and you don’t sacrifice meaningful data. Whether anything else on your site needs consent is a question for your counsel.

What you lose (and what you don’t)

Cookieless analytics is not for every use case. Here’s an honest breakdown:

What you lose:

  • Repeat visitor counts (individual user sessions across days)
  • User-level behavior paths (user A → page 1 → page 2 → conversion)
  • Demographic and device data tied to specific users
  • Cross-session attribution (first touch vs. last touch per user)

What you keep:

  • Page-level traffic counts (accurate, complete, no consent gap)
  • Referrer source breakdown (google.com, chatgpt.com, direct, etc.)
  • Traffic trends over time (up/down by day, week, month)
  • Top pages and content performance
  • Conversions, as pageviews of thank-you pages or server-side events

For most developer products, documentation sites, SaaS marketing sites, and content businesses, the list of what you keep is everything you actually make decisions from. The list of what you lose is the stuff that looks impressive in reports but rarely drives a shipping decision.

Setting up Measure.events without cookies

Installation takes about 90 seconds.

1. Create an account

Go to lets.measure.events and start a 14-day trial (card required; $29/month after that covers up to 40 sites). Add your site domain. You’ll get a tracking ID.

2. Add the tracking script

For a standard HTML site or any framework:

HTML
<script defer src="https://lets.measure.events/api/script/YOUR_TRACKING_ID"></script>

Add this to your <head> tag or layout component. It loads with defer and won’t block your page.

3. Framework-specific setup

Next.js (App Router):

JSX
// app/layout.tsx
import Script from 'next/script'

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html>
      <body>
        {children}
        <Script
          defer
          src="https://lets.measure.events/api/script/YOUR_TRACKING_ID"
          strategy="afterInteractive"
        />
      </body>
    </html>
  )
}

Astro:

Astro
<!-- src/layouts/Base.astro -->
<head>
  <script is:inline defer src="https://lets.measure.events/api/script/YOUR_TRACKING_ID"></script>
</head>

Rails:

HTML
<%# app/views/layouts/application.html.erb %>
<head>
  <script defer src="https://lets.measure.events/api/script/YOUR_TRACKING_ID"></script>
</head>

That’s the complete setup. No configuration file, no API key in the client, no cookie banner needed.

The script tracks pageviews, single-page-app navigation and time on page automatically. It’s about 2.5KB.

4. Conversions (optional)

There’s no browser event API. To count sign-ups or form submissions, either send people to a page you can count (/thanks, /welcome), or record the event from your server:

Shell
curl -X POST https://lets.measure.events/api/v1/events \
  -H "Authorization: Bearer mk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"site_key": "YOUR_SITE_KEY", "path": "/signup-complete"}'

These show up in your dashboard alongside pageviews.

Using the MCP server with your AI tools

Measure.events ships with an MCP (Model Context Protocol) server that lets you query your analytics data from AI tools like Cursor, Claude Desktop, and Windsurf.

Once connected, you can ask:

“Which pages had the biggest traffic drop this week?” “What’s the top referrer for my pricing page?” “Show me the trend for /blog over the last 30 days.”

No SQL. No dashboard switching. Just answers in the context of where you’re already working.

To connect, add https://lets.measure.events/mcp to your tool’s MCP config, with your API key (it starts with mk_) as a Bearer token.

The practical summary

If you’re running a developer tool, SaaS product, or content site with any EU traffic:

  1. Remove your cookie-based analytics (or keep it consent-gated, degrading your data)
  2. Install a cookieless tool with a single script tag
  3. Drop the cookie consent banner for analytics
  4. Get accurate, complete traffic data without the consent overhead

Cookieless analytics isn’t a compromise. For most products, it’s strictly better — more data, simpler setup, and one fewer thing that breaks when privacy laws change again.

Let your agent read the numbers.

$29 a month covers 40 sites, then $0.50 a site. 14-day trial.