Skip to content

Add GA4 site-wide via theme.js (G-2XTJQYB0HM) - #15

Merged
cjpurackal merged 2 commits into
masterfrom
cursor/add-ga4-analytics-c7a7
Oct 4, 2026
Merged

cjpurackal merged 2 commits into
masterfrom
cursor/add-ga4-analytics-c7a7

Conversation

@cjpurackal

Copy link
Copy Markdown
Member

This PR adds Google Analytics 4 to the site using the measurement ID G-2XTJQYB0HM.

Summary of changes:

  • Load GA4 globally from theme.js so all public pages inherit the tag. This dynamically injects gtag.js and calls gtag('config', 'G-2XTJQYB0HM') early in <head>.
  • Replace the commented Plausible stub on the homepage with a short comment noting GA4 is active instead.

Files changed:

  • theme.js: Adds GA4 loader and initialization (site-wide).
  • index.html: Removes the Plausible snippet (still not enabled) and documents that GA4 is active via theme.js.

Verification:

  • Homepage (/index.html) includes theme.js in <head>; GA4 loads.
  • SLAM page (/slam/index.html) includes ../theme.js in <head>; GA4 loads.
  • Other marketing pages also reference theme.js (e.g., /projects/, /sponsor/, /news/), so they inherit GA4 without further edits.

Notes:

  • No content, CTA, or styling changes beyond analytics wiring.
  • No cookie consent UI added.
  • Plausible remains disabled.
Open in Web Open in Cursor 

cursoragent and others added 2 commits October 4, 2026 17:43
Co-authored-by: Christie Jacob <cjpurackal@gmail.com>
…e.js

Co-authored-by: Christie Jacob <cjpurackal@gmail.com>
@cjpurackal
cjpurackal marked this pull request as ready for review October 4, 2026 17:46
@cjpurackal
cjpurackal merged commit e6bc6ca into master Oct 4, 2026
1 of 2 checks passed
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.

2 participants