ubuntu.com icon indicating copy to clipboard operation
ubuntu.com copied to clipboard

GROWENG-3933 refactor dataLayer.push for GA4 structure #13998

Open samhotep opened this issue 7 months ago • 2 comments

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&lts=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

Help

QA steps - Commit guidelines

samhotep avatar Jul 03 '24 13:07 samhotep