BrekkyDocs

Getting started

  • Introduction
  • Quickstart
  • Core concepts

Guides

  • Install the tracker
  • Track custom events
  • Identify users
  • Cross-app handoffs
  • Dashboard
  • Team & roles

Reference

  • SDK reference
  • MCP
  • FAQ
Open dashboard
⌘K
Log inCreate free accountSign up

Install the tracker

Pick your platform, paste the snippet or SDK init, then load your app once to confirm events arrive.

Paste the snippet before </head> on every page, or in your root layout. Replace the write key with yours from Settings → Tracking.

HTML
<script defer
  src="https://cdn.brekkymetrics.com/v1/brekky.js"
  data-app="bm_your_write_key"
  data-api="https://cdn.brekkymetrics.com/v1/ingest">
</script>
The script loads from /v1/brekky.js by default. Override with data-api if you self-host ingest (advanced).

Automatic on install

  • page_view on load and SPA navigation
  • Visitor and session IDs in localStorage
  • UTM params from the query string

Framework notes

  • Next.js / React: add to app/layout.tsx or pages/_document.tsx
  • WordPress / Webflow: custom code in the head
  • Shopify: theme.liquid before </head>
Next: Track custom events