← All IntegrationsIntegration

Analytics for Netlify

Netlify Analytics is server-side but limited — no AI traffic detection, no bot breakdown, and no CLI or MCP tracking. BetterMeter fills those gaps with a privacy-first approach that requires no cookies and works across your entire stack.

First-party proxy via _redirects

Netlify's _redirects file supports proxy rules (status 200). Route all three BetterMeter paths — the tracker script, the event endpoint and the noscript pixel — through your own domain to bypass ad blockers entirely. Proxying the script without the event endpoint gets you an install that loads and records nothing.

public/_redirects
# BetterMeter first-party proxy
/bm/s  https://bettermeter.com/api/s  200
/bm/e  https://bettermeter.com/api/e  200
/bm/p  https://bettermeter.com/api/p  200

Then point the snippet at those paths. data-api is what sends events to /bm/e; leave it off and the tracker falls back to the script's own origin and posts to /api/e on your Netlify site, which nothing serves.

Proxied snippet
<script defer data-site="your-domain.com" data-api="/bm/e" src="/bm/s"></script>
<img src="/bm/p?s=your-domain.com" alt="" style="position:absolute;width:0;height:0;overflow:hidden" />

BetterMeter vs Netlify Analytics

  • 01AI traffic detection — BetterMeter identifies visits from ChatGPT, Claude, and Perplexity. Netlify Analytics doesn't distinguish AI traffic.
  • 02Bot & crawler breakdown — See which bots crawl your site, how often, and which pages they hit. Netlify filters bots out entirely.
  • 03CLI, MCP & API tracking — BetterMeter tracks your entire product surface, not just web pages.
  • 04Privacy-first — No cookies, no personal data stored. GDPR and CCPA compliant out of the box.
  • 05$9/mo less — Netlify Analytics costs $9/mo per site. BetterMeter's free tier covers most sites.
_redirects Proxy
First-party tracking
AI Detection
ChatGPT, Claude, etc.