You used the bad place for tracking code for Google Dynamic Remarketing.
You put it in the <body> section, but you should put it in the <head> section.
Hi Team,
This email is about Enhanced E-commerce Plugin; I was trying to verify Google Webmaster via Tag Manager then got the error.
When I checked in view source, the code was actually in a wrong place.
Solution: This is what Google recommends: https://support.google.com/tagmanager/answer/6103696?authuser=0&visit_id=1-636659303617669795-1149766746&rd=1
Hi Team,
Can you please add the option for using “Global Site Tag” script in Google Dynamic Remarketing? Currently by default plugin takes an old script, which Google doesn’t recommend. Please update it.
Global site tag looks like this:
<!-- Global site tag (gtag.js) - AdWords: XXXXXXXXX -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-XXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW- XXXXXXXXX ');
</script>
<script>
gtag('event', 'page_view', {
'send_to': 'AW- XXXXXXXXX ',
'ecomm_pagetype': 'replace with value',
'ecomm_prodid': 'replace with value',
'ecomm_totalvalue': 'replace with value',
'user_id': 'replace with value'
});
</script>
I can add this script but don’t know what to replace with value. It’s dynamic.
-Regards,
Chandresh Yadav