ubuntu.com
ubuntu.com copied to clipboard
GROWENG-3933 refactor dataLayer.push for GA4 structure #13998
Done
-
Recreated #13998
-
Refactored sendContributionFormAnalytics function not to send multiple GAEvent pushes to the dataLayer but to send one push with the data as key-value pairs within that push in order to respect GA4 event parameter data model
QA
- Visit https://ubuntu-com-14030.demos.haus/download/desktop/thank-you?version=24.04&architecture=amd64<s=true
- Click on contribution with various contribution amount settings (including 0)
- Check the value of the dataLayer array in the console whether the "contribution" event object in the array appears and whether it has the correct data