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