Installation guides

The snippet is the same everywhere; only the place you paste it changes.

Plain HTML

Paste the snippet before </head> in every page, or in the shared header include.

Next.js (App Router)

Add it to app/layout.tsx inside <head> using next/script with strategy="afterInteractive", or paste the tag directly. Route changes are tracked automatically.

Astro

Put the tag in your base layout’s <head>. Add is:inline so Astro leaves it untouched.

WordPress

Appearance → Theme File Editor → header.php, before </head>. Or use a “header scripts” plugin if you prefer not to edit theme files.

Shopify

Online Store → Themes → Edit code → theme.liquid, before </head>.

Webflow

Project settings → Custom code → Head code.

Framer

Site settings → General → Custom code → Start of <head>.

Verify

Settings → Tracking → Setup health shows “Receiving data” once the first pageview arrives.

Something unclear? Contact support.