Auto-capture analytics — every click and pageview tracked without custom event code.
Configure
integrations.heapstringpathrequiredHeap App ID. Script injects via <Script strategy="afterInteractive"> and loads from https://cdn.heapanalytics.com.
{
"integrations": {
"heap": "1234567890"
}
}Where to find your app id
Heap project → Install → App ID (numeric).
Or set it from the dashboard — Editor → Configurations → AI & Advanced → Integrations.
Loading behavior
Strategy:
afterInteractive— injected after page interactivity, so it never blocks first paint.CSP: if you enforce a Content Security Policy, allowlist
https://cdn.heapanalytics.cominscript-src.Removal: delete the
integrations.heapkey (or blank it in the dashboard) and redeploy — the script disappears on the next page load.
Related
Schema reference —
integrations— auto-generated field listing