Posted - 04/02/2019 : 13:43:13
We have an outside company tracking our web site sales. They can track everything between the '' in the script listed below, except for the 'orderid' and 'revenue'. They said that I need to change what they have listed in their Google script to what the ECT is using for them to track it. I have the script on my Thanks.php page.
They said change 'orderid': [value], to what ever ect has for OrderID. So Change whats between the ''. to what ECT uses for that value.
And same thing for 'revenue': [value], change what they have for 'revenue' to what ECT uses in between the ''.
See below for Google script ---------------------- <head>
<script>
dataLayer = [{
'session': [value],
'orderid': [value],
'revenue': [value],
'productid': [value],
'productinfo': [value],
'quantity': [value]
}];
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TZ26C4J');</script>
<!-- End Google Tag Manager -->
|