Google Analytics 4
Measure docs traffic in Google Analytics 4.
Turn it on
- Open Integrations
Open Integrations in the project sidebar and find Google Analytics 4 under Docs analytics.
- Paste your measurement ID
Paste the value from your Google Analytics 4 account. Octri checks its format before it saves, and refuses one that doesn't match.
- Save
Every docs page loads it from the next page view. No publish is needed.
To turn it off, open the same card and press Turn off.
What to expect
Readers who accept cookies show up in GA4's Realtime report within a minute or so, and in the standard reports once Google has processed the day's data. Each page they open counts as a page view. Readers who decline, or haven't answered yet, aren't counted, so expect GA4's numbers to sit below Octri's own analytics.
Settings
Measurement IDstringrequiredThe ID of your web data stream, in GA4's Admin, under Data streams. It starts with G-, such as G-XXXXXXXXXX.
Consent
Google Analytics 4 sets cookies, so it loads only after a reader agrees to analytics. Octri's own banner asks, unless you connect Cookiebot or Osano, which then decide instead. A reader who declines never loads it. See cookie consent.
Plan
Docs integrations come with custom code, on the Growth, Business and Enterprise plans. If a plan lapses, the docs stop loading Google Analytics 4 until it's back. See plans and limits.