Repository navigation
docs: add GA4 tracking for HEP CTAs - #13840
Open
kacperlukawski wants to merge 2 commits into
Open
kacperlukawski wants to merge 2 commits into
kacperlukawski wants to merge 2 commits into
Conversation
…rm CTAs Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
kacperlukawski
marked this pull request as ready for review
November 20, 2026 16:13
kacperlukawski
requested review from
bogdankostic
and removed request for
a team
November 20, 2026 16:13
This branch was successfully deployed
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.
Related Issues
Proposed Changes:
The Haystack Enterprise Platform (HEP) CTAs across the docs can't be told apart in GA4 today: almost all link to
https://www.deepset.ai/haystack-platformwith the same text. This adds placement-level tracking via the GTMdataLayer(docs site only; GTM/GA4 configuration is separate).src/clientModules/hepTracking.jspushes:docs_page_contexton every route change (docs_section,docs_version,hep_available,page_path)hep_cta_clickon clicks to deepset.ai-owned hosts, withcta_location(navbar, footer,callout_*, HEP pages, Enterprise Components intro, inline) andcta_type. The push is synchronous and never blocks navigation.hep_cta_view(≥50% visible for ≥1s, once per location per page view, navbar skipped)hep_badge_click/hep_badge_viewfor the component-page badgePlatformBadgegetsdata-cta="badge"anddata-component; the name is passed fromDocItem/Content.plugins/hepTrackingDataPlugin.jsexposes each page's top-level sidebar category andhep_availablefrontmatter through global data, sodocs_sectionworks without the sidebar being rendered (mobile).No MDX files are edited.
How did you test it?
npm run buildindocs-website/passes. Checked the generated global data fordocs_section/hep_availablevalues. Runtime events have not yet been verified in GTM Preview / GA4 DebugView.Notes for the reviewer
cta_location: callout.auxclick).Checklist
fix:,feat:,build:,chore:,ci:,docs:,style:,refactor:,perf:,test:and added!in case the PR includes breaking changes.🤖 Generated with Claude Code