← 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 the BetterMeter script and event endpoint through your own domain to bypass ad blockers entirely.

public/_redirects
# BetterMeter first-party proxy
/bm/script  https://bettermeter.com/api/script  200
/bm/event   https://bettermeter.com/api/event   200

Deploy notifications

Netlify can send outgoing webhooks on every successful deploy. Point a deploy notification at BetterMeter's annotation endpoint to mark deploys on your traffic timeline. Navigate to Site Settings → Build & deploy → Deploy notifications → Outgoing webhook.

Netlify Deploy Notification
Event:  Deploy succeeded
URL:    https://bettermeter.com/api/annotations?site=your-domain.com&key=bm_your_api_key

# BetterMeter will create a timeline annotation
# with the deploy commit SHA and branch name

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
Deploy Hooks
Timeline annotations
AI Detection
ChatGPT, Claude, etc.