Skip to content

Add GA4 tracking for SPA search visibility#21

Merged
vahldiek merged 1 commit into
mainfrom
feat/ga4-spa-search-visibility
Jul 6, 2026
Merged

Add GA4 tracking for SPA search visibility#21
vahldiek merged 1 commit into
mainfrom
feat/ga4-spa-search-visibility

Conversation

@vahldiek

@vahldiek vahldiek commented Jul 6, 2026

Copy link
Copy Markdown
Member

Summary

  • add shared GA4 helper for SPA-style searches
  • emit with for landing-page search
  • emit with for profile search selections
  • emit virtual after history API URL changes to keep GA4 page/search reports aligned

Why

Site search is client-side and updates URL via history API without full reload, so GA4 enhanced site-search may miss query terms unless events are emitted explicitly.

Notes

  • includes only JS analytics instrumentation changes
  • unrelated local edit in is intentionally excluded

@vahldiek vahldiek force-pushed the feat/ga4-spa-search-visibility branch from 746ce69 to e652d36 Compare July 6, 2026 12:08
@vahldiek vahldiek merged commit d8b9c56 into main Jul 6, 2026
3 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.

1 participant