Skip to content

Add Google Analytics (GA4) tracking#6

Merged
Aaronontheweb merged 1 commit intodevfrom
feature/add-google-analytics
May 5, 2026
Merged

Add Google Analytics (GA4) tracking#6
Aaronontheweb merged 1 commit intodevfrom
feature/add-google-analytics

Conversation

@Aaronontheweb
Copy link
Copy Markdown
Contributor

Summary

  • Adds GA4 tracking (measurement ID G-NY61NRBJ68) to all site pages
  • Starlight doc pages get gtag via the head array in astro.config.mjs
  • Landing page (index.astro) gets gtag directly in its <head>

Test plan

  • npm run build passes cleanly
  • Playwright verified gtag.js loads (HTTP 200) on both landing page and docs pages
  • Playwright verified window.dataLayer is initialized and pageview events fire (HTTP 204 from google-analytics.com)

Add gtag.js with measurement ID G-NY61NRBJ68 to the Starlight head
config for doc pages and directly to the landing page head.
@Aaronontheweb Aaronontheweb merged commit 00f62c8 into dev May 5, 2026
2 checks passed
@Aaronontheweb Aaronontheweb deleted the feature/add-google-analytics branch May 5, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant