YES!! Finaly I got it up and running

YES!! Finaly I got it up and running.... Enhanced conversions. Thanks to the community on discord I have to admit it was still a puzzle... but I pulled it off 🏆
No description
7 Replies
BadgeMan
BadgeManOP4mo ago
Step 1: Hard code folowing scripts on page that fires purchase event (thank you page): <script> var user_data_info = { sha256_email_address: 'hashed value', sha256_phone_number: 'hashed value', address: { sha256_first_name: 'hashed value', sha256_last_name: 'hashed value', sha256_street: 'hashed value', postal_code: 'xxxxxx', city: 'xxxxxx', country: 'xx', new_customer: false } }; zaraz.track("conversion", { transaction_id: "xxxxxx", value: 1.00,currency: 'EUR', user_data: JSON.stringify(user_data_info) } ); </script>
BadgeMan
BadgeManOP4mo ago
Step 2: Enable "Allow user-provided data capabilities" in the data stream -> configure tag settings.
No description
BadgeMan
BadgeManOP4mo ago
Step 3: Enable 'Use enhanced conversions for this conversion action' in your primary purchase goal.
No description
BadgeMan
BadgeManOP4mo ago
Step 4: Add a custom purchase event in the (Zaraz) Google Ads tool which fires on "conversion" event. Enable include event properties. (this will add the user_data which is sent by zaraz.track("conversion") to Google Ads.
No description
BadgeMan
BadgeManOP4mo ago
Step 5: Be patient! Google Ads will show a green flag in approx 24-48 hours. It worked in my case! Hope this helps... Good luck!
BadgeMan
BadgeManOP4mo ago
Special thanks to @MVUG for pointing me in the right direction: https://gist.github.com/it-can/188acc89637160d21ab9a37e1bbf0b2c
Gist
Cloudflare Zaraz Google Ads conversion tracking with "enhanced conv...
Cloudflare Zaraz Google Ads conversion tracking with "enhanced conversions" - checkout-succes.blade.php
ItsTobias
ItsTobias3mo ago
Hey @BadgeMan That's a great write up, I am still having issues implementing Enhanced Conversions (and Consent Mode) in Google Ads. I wonder if you could provide an example of what the web request to www.googleadservices.com looks like for you I have posted what mine looks like below We have a number of differences in our setup to yours. 1) We are using Zaraz HTTP Events API instead of a js zaraz.track call to send the event to Zaraz. 2) We have our own consent model which sets consent settings in Zaraz, this appears to work completely fine for Analytics, showing "Excellent" consent signals, but Google Ads has only very briefly shown the green consent tick on the diagnostics page, after appearing once I have never managed to get it to show again. Google Ads has never shown a green tick for enhanced conversions. 3) We have multiple sites with these configurations, some sites have Google Analytics conversions set as the primary purchase action in Ads, some have the Google Ads conversion set as Primary, none of them show green ticks for consent or enhanced conversions. We keep making minor changes to the configuration and checking back after 48 hours, but as of yet nothing we have done has got it working correctly. We also have each of our sites running slightly different configurations with the goal of hopefully identifying one that "works" and then replicating that on all the other sites. I am very close to switching the process to use the js zaraz.track method instead of the Zaraz HTTP Events API to see if this has any effect on the situation. Many Thanks for any help you can offer on this.
No description

Did you find this page helpful?