Closed
Description
Prerequisites
- I have searched existing issues to ensure this feature hasn't already been requested
- I have tested using the latest version of docs-builder
What problem are you trying to solve?
Summary
We need to set up Google Analytics 4 (GA4) on Elastic Docs v to track user engagement, page views, and other key metrics. This will help us monitor usage patterns and improve the Docs experience.
Acceptance criteria
- [Docs Eng] Add GA4 tracking to all pages of the documentation site.
- [Kaarina] Verify that events such as page views, outbound link clicks, and search interactions are being captured.
- [Kaarina] Confirm that data is flowing correctly into our GA4 property.
Proposed Solution
Implementation details
- Work with @christianweinke on v3 implementation Instructions
- Leverage Google Tag Manager for additional configuration, including:
start-local
copy button on landing page, Deployment options, and Run Elasticsearch locally (this is what implementation looks like in AsciiDoc Add Copy to Clipboard CTA tracking docs#3136)- Left navigation (if this is possible)
- Code block language dropdown
Additional Context
GA4 implementation is critical.
Google Tag Manager is less critical, but important for teams outside of Docs.
How important is this feature to you?
Critical