Deployment guide
Choose your platform
For every platform we have concrete steps: where to paste the snippet, what pitfalls to avoid, how to verify it works.
H
Basics
Plain HTML / static site
Paste one line in <head>, before any analytics tags.
Read →
W
CMS
WordPress (plugin)
Thin plugin (~40 lines). Install, paste key in settings.
Read →
G
Tags
Google Tag Manager (GTM)
Custom HTML tag in GTM with highest priority. Works, but it is safer to put the snippet directly in <head>.
Read →
N
SPA
Next.js / React
Script in _document.tsx (Pages Router) or layout.tsx (App Router) with strategy=beforeInteractive.
Read →
S
E-commerce
Shopify
Edit theme.liquid - paste snippet in <head> before Shopify Analytics.
Read →
J
JAMstack
Gatsby / Static generator
Plugin gatsby-plugin-html in gatsby-ssr.js using onRenderBody.
Read →
◆
No-code
Webflow / Squarespace / Wix
Custom Code in project settings - <head> tag section.
Read →
?
Theory
Google Consent Mode v2 - how it works
What Consent Mode v2 is and why Google requires it in EEA since March 2024.
Read →