Description
This PR introduces improvements in analytics tracking
Analytics Improvement:
The trackPaymentConversion function in impact.service.ts now includes the gclid (Google Click Identifier) value from cookies, if available, when sending the purchase event to Google Analytics via gtag.
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
Testing Process
A user clicks on a Google Ads ad, and the website automatically appends a parameter called gclid to the URL, storing it in a cookie along with a 90-day expiration date. When we reach the checkout, the goal is to retrieve that gclid so we can include it in the conversion event. I haven’t been able to test it with Google Ads yet because I’m still waiting for some things to be set up. However, I have confirmed that the cookie is being stored correctly by checking it through the browser’s DevTools.