Skip to content

Add Google Analytics tracking#131

Draft
anirudha wants to merge 1 commit intomainfrom
feat/add-ga-tracking-G-BQV14XK08F
Draft

Add Google Analytics tracking#131
anirudha wants to merge 1 commit intomainfrom
feat/add-ga-tracking-G-BQV14XK08F

Conversation

@anirudha
Copy link
Copy Markdown
Collaborator

@anirudha anirudha commented Mar 23, 2026

Summary

  • Configure GA4 tracking ID
  • Add GA4 tracking to the Starlight docs site via the head config in astro.config.mjs
  • Both sites now report to the same Google Analytics property

Test plan

  • Build both sites (npm run build) and verify no errors
  • Inspect rendered HTML <head> to confirm the gtag.js script and config are present with the correct tracking ID
  • Open browser DevTools Network tab and verify requests to googletagmanager.com with G-BQV14XK08F

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown

✅ Docs preview build completed successfully! All tests passed.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 18.51%. Comparing base (5d6beb0) to head (8257ffa).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #131   +/-   ##
=======================================
  Coverage   18.51%   18.51%           
=======================================
  Files           3        3           
  Lines          54       54           
  Branches       18       18           
=======================================
  Hits           10       10           
  Misses         44       44           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Configure GA4 tracking for the main marketing site and the Starlight
docs site so all page views report to a single analytics property.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Anirudha Jadhav <anirudha@nyu.edu>
@anirudha anirudha force-pushed the feat/add-ga-tracking-G-BQV14XK08F branch from f506805 to 8257ffa Compare March 23, 2026 18:48
@anirudha anirudha changed the title Add Google Analytics tracking (G-BQV14XK08F) Add Google Analytics tracking Mar 23, 2026
@github-actions
Copy link
Copy Markdown

✅ Docs preview build completed successfully! All tests passed.

@anirudha anirudha marked this pull request as draft March 23, 2026 18:58
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