Skip to main content

Integrations

Heap

Wire Heap into every docs page — add your app id to `integrations.heap` and the script loads on next deploy.

Auto-capture analytics — every click and pageview tracked without custom event code.

Configure

integrations.heapstringpathrequired

Heap 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 → InstallApp 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.com in script-src.

  • Removal: delete the integrations.heap key (or blank it in the dashboard) and redeploy — the script disappears on the next page load.

Related

Was this page helpful?

Last updated August 7, 2026