Description
This PR implements the begin_checkout event tracking for Google Analytics to capture user interactions when they reach the checkout page.
Changes:
-
Created new analytics service (
ga.service.ts):- Added
trackBeginCheckout()method that sendsbegin_checkoutevent to Google Tag Manager - Implements proper event structure with items array following GA4 ecommerce standards
- Added
-
Updated checkout flow:
- Integrated
gaService.trackBeginCheckout()call inCheckoutViewWrappercomponent - Fires
begin_checkoutevent when checkout page loads with selected plan data
- Integrated
Related Issues
Related Pull Requests
Checklist
- Changes have been tested locally.
- Unit tests have been written or updated as necessary.
- The code adheres to the repository's coding standards.
- Relevant documentation has been added or updated.
- No new warnings or errors have been introduced.
- SonarCloud issues have been reviewed and addressed.
- QA Passed