Skip to content

Feat/ga measurement#37

Merged
jeronimodeleon merged 2 commits into
mainfrom
feat/ga-measurement-id
Jul 14, 2026
Merged

Feat/ga measurement#37
jeronimodeleon merged 2 commits into
mainfrom
feat/ga-measurement-id

Conversation

@jeronimodeleon

Copy link
Copy Markdown
Contributor

What

Adds the Google Analytics 4 tag (property G-KKNKYMVB92) directly to the site
<head> in BaseLayout.astro via the standard gtag.js snippet, marked
is:inline so Astro emits it verbatim. This becomes the single GA loader:
PUBLIC_GA_ID is left unset so the existing consent-gated <Analytics />
component stays dormant and pageviews aren't double-counted. Also adds a cspell
ignore pattern for GA4 measurement IDs so the hardcoded ID passes the spellcheck
pre-commit hook.

Type of change

  • Add an integration (edits src/data/labs.json)
  • Update an integration (edits an existing labs.json entry)
  • Website fix / improvement (component, style, or build)
  • Docs / chore

Checks (run before opening)

  • npm run checks passes locally
  • If adding an integration: tested locally with npm run dev and the card renders correctly
  • If touching layout/styles: looked OK at mobile + desktop
  • If touching styles: looked OK in dark, light, and system themes

@jeronimodeleon
jeronimodeleon merged commit 47961eb into main Jul 14, 2026
6 checks passed
@jeronimodeleon
jeronimodeleon deleted the feat/ga-measurement-id branch July 14, 2026 15:36
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