Hi There,
So we finally managed to get Google Analytics e-commerce tracking working and decided to add the code for AdWords too. The day we did this AdWords tracking is now working fine but the Analytics tracking stopped tracking e-commerce conversions. Here is the code below. Any ideas please?
Script #1 is in the Head:
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-40188414-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-40188414-1');
</script>
Script #2 is in page Body, because that’s where I can vary the content on a page by page basis:
<script>
gtag('config', 'AW-965341028');
gtag('event', 'conversion', {
'send_to': 'AW-965341028/okMMCLm57aUBEOTep8wD',
'value': 40.2300,
'currency': 'GBP',
'transaction_id': '6444'
});