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_viewon 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.tsxorpages/_document.tsx - WordPress / Webflow: custom code in the head
- Shopify:
theme.liquidbefore</head>