Skip to content

RDBTC-237 Handle GA4 (docs side) - #2576

Merged
poissoncorp merged 1 commit into
ravendb:mainfrom
poissoncorp:samples-hub-analytics-instrumentation
Jul 29, 2026
Merged

RDBTC-237 Handle GA4 (docs side)#2576
poissoncorp merged 1 commit into
ravendb:mainfrom
poissoncorp:samples-hub-analytics-instrumentation

Conversation

@poissoncorp

@poissoncorp poissoncorp commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Issue link

https://issues.hibernatingrhinos.com/issue/RDBTC-237

Additional description

Client-side GA4/GTM tracking for the samples hub: UTM tagging on outbound links plus four dataLayer events.

File Change
src/components/Samples/analytics.ts New. UTM helper + dataLayer event pushers
src/components/Samples/Hub/SamplesHomePage.tsx Fire filter_applied on filter toggle
src/components/Samples/Hub/Partials/SamplesGrid.tsx Fire sample_card_click per card
src/components/Samples/Hub/Partials/SampleCard.tsx onCardClick hook on the card link
src/components/Samples/Overview/Partials/SampleMetadataColumn.tsx Pass sample slug + tech stack to the actions card
src/components/Samples/Overview/Partials/ActionsCard.tsx UTM-tag repo/demo links; fire sample_repo_click / sample_outbound_click; open them in a new tab so the outbound event isn't lost to same-tab navigation
src/components/Common/Button.tsx Forward onClick / target / rel to the link branch

Note: forwarding onClick to the link branch also affects the existing DocVersionBanner "See latest version" button, whose onClick (persisting the preferred version) was previously dropped on the anchor path and now fires as intended.

Type of change

  • Content - docs
  • Content - cloud
  • Content - guides
  • Content - start pages/other
  • New docs feature (consider updating /templates or readme)
  • Bug fix
  • Optimization
  • Other

Changes in docs URLs

  • No changes in docs URLs
  • Articles are restructured, URLs will change, mapping is required (update /scripts/redirects.json file, set Documents Moved PR label)

Changes in UX/UI

  • No changes in UX/UI
  • Changes in UX/UI (include screenshots and description)

@poissoncorp poissoncorp changed the title Handle GA4 (docs side) RDBTC-237 Handle GA4 (docs side) Jul 23, 2026
@poissoncorp
poissoncorp force-pushed the samples-hub-analytics-instrumentation branch from 29678c0 to 1f7a3f3 Compare July 28, 2026 00:23
@poissoncorp
poissoncorp force-pushed the samples-hub-analytics-instrumentation branch from 1f7a3f3 to 7d14778 Compare July 28, 2026 01:07
@poissoncorp
poissoncorp merged commit d6888e6 into ravendb:main Jul 29, 2026
1 check 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