Skip to main content

Integrations

Integrations overview

Wire any of 16 third-party scripts (13 analytics, 1 privacy, 2 support) into every docs page via a single config key. No custom code, no bundler changes.

integrations is a key-value map where the key names the provider and the value is that provider's account ID. The platform injects the right <script> tag on every docs page — tenants with no integrations ship zero extra JS.

Every integration loads with strategy="afterInteractive" so it never blocks first paint. The exception is Osano (cookie consent), which loads beforeInteractive so it can gate other scripts if the reader hasn't consented.

Quick start

{
  "integrations": {
    "ga4": "G-XXXXXXXXXX",
    "posthog": "phc_abc123...",
    "plausible": "docs.example.com",
    "intercom": "abc123xy",
    "osano": "ABC-123-XYZ"
  }
}

Or edit from Configurations → AI & Advanced → Integrations in the dashboard.

Analytics (14)

ProviderConfig keyWhat to set
Google Analytics 4ga4Measurement ID (G-XXXXXXXXXX)
Google Tag ManagergtmContainer ID (GTM-XXXXXXX)
PostHogposthogProject API key (phc_abc123...)
PlausibleplausibleTracked domain (docs.example.com)
FathomfathomSite ID (ABCDEFGH)
MixpanelmixpanelProject token (abc123def456...)
SegmentsegmentWrite key (abcxyz123)
AmplitudeamplitudeAPI key (abc123...)
Microsoft ClarityclarityProject ID (abc123def4)
HotjarhotjarSite ID (1234567)
LogRocketlogrocketApp ID (org/app)
TrueStattruestatSite key (ts_cd067fec0d8b204f35f1)
PirschpirschID (abc123)
HeapheapApp ID (1234567890)

All thirteen coexist on the same site without collision — ship GA4 + PostHog + Hotjar on the same page and each gets clean events.

Cookie consent (1)

ProviderConfig keyWhat to set
OsanoosanoCustomer / site ID (ABC-123-XYZ)

Support widgets (2)

ProviderConfig keyWhat to set
IntercomintercomApp ID (abc123xy)
Front ChatfrontChatChat ID (abc123)

Privacy + security

  • No server-side pipe. The platform doesn't proxy events through our servers — each script runs in the reader's browser using the account ID you provided.

  • Secrets. Analytics IDs are not secrets; they're public by design. Don't put anything sensitive in integrations.*.

  • CSP. If you enforce a Content Security Policy, allowlist each provider's script origin. Per-provider pages list the exact URL.

  • Consent. When osano is configured it loads before every other integration so consent decisions can gate downstream scripts.

Personalization (planned)

Intercom, Mixpanel, Amplitude, and PostHog support user identification (intercom('boot', { user_id, name, email })). When authenticated-user personalization ships, you'll be able to pipe reader identity into these integrations automatically — no code.

Related

Was this page helpful?

Last updated August 29, 2026