Repository navigation
Add Google Analytics script to config - #92
Merged
Merged
Conversation
This was referenced Oct 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Google Analytics script to config
Changes
I added the Google Analytics tag (
G-Q0ELMEF4DB) to the CodexA docs site, and a local build put it on every page. It isn't live yet: you need to commit and push the change, and the docs deploy workflow (deploy-docs.yml) will publish it.The site is built with VitePress, so I put the tag in the site-wide
headsetting indocs/.vitepress/config.mtsrather than editing any HTML by hand:After deploying, you can confirm it's working by opening the live site while watching GA's Realtime report.
VitePress changes pages without a full reload. GA4 still counts those page views as long as Page changes based on browser history events is on. It's on by default, under Admin → Data streams → your stream → Enhanced measurement.