Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Document exposing gtag for custom events in Qwik Partytown setup (
#6303) Expose gtag for custom events in Qwik Partytown setup This update enhances the Qwik application's integration with Google Analytics via Partytown by ensuring the `gtag` function is exposed for use in components, enabling the sending of custom events directly from the component level. Key changes: 1. Updated the Partytown script configuration to expose `gtag` globally, allowing for direct invocation in component logic. 2. Added the complete Google Analytics integration script as recommended by Google, ensuring comprehensive tracking capabilities. 3. Documented this integration pattern to assist others in setting up Google Analytics with Partytown in Qwik applications, addressing a common challenge found during implementation.
- Loading branch information