RDBTC-237 Handle GA4 (docs side) - #2576
Merged
poissoncorp merged 1 commit intoJul 29, 2026
Merged
Conversation
poissoncorp
force-pushed
the
samples-hub-analytics-instrumentation
branch
from
July 28, 2026 00:23
29678c0 to
1f7a3f3
Compare
poissoncorp
force-pushed
the
samples-hub-analytics-instrumentation
branch
from
July 28, 2026 01:07
1f7a3f3 to
7d14778
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
src/components/Samples/analytics.tssrc/components/Samples/Hub/SamplesHomePage.tsxfilter_appliedon filter togglesrc/components/Samples/Hub/Partials/SamplesGrid.tsxsample_card_clickper cardsrc/components/Samples/Hub/Partials/SampleCard.tsxonCardClickhook on the card linksrc/components/Samples/Overview/Partials/SampleMetadataColumn.tsxsrc/components/Samples/Overview/Partials/ActionsCard.tsxsample_repo_click/sample_outbound_click; open them in a new tab so the outbound event isn't lost to same-tab navigationsrc/components/Common/Button.tsxonClick/target/relto the link branchNote: forwarding
onClickto the link branch also affects the existingDocVersionBanner"See latest version" button, whoseonClick(persisting the preferred version) was previously dropped on the anchor path and now fires as intended.Type of change
/templatesor readme)Changes in docs URLs
/scripts/redirects.jsonfile, setDocuments MovedPR label)Changes in UX/UI