Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Google Sales Tracking OrderID and Revenue values
Author « Topic »  

ardade
Advanced Member

257 Posts

Pre-sales questions only
(More Details...)

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 -->

dbdave
ECT Moderator

USA
10468 Posts

Posted - 04/02/2019 :  13:50:07  
Check this post - https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=110183
I think you want <?php print $ordTotal; ?> maybe

Edited by - dbdave on 04/02/2019 13:51:42

ardade
Advanced Member

257 Posts

Pre-sales questions only
(More Details...)

Posted - 04/03/2019 :  06:22:33  
so this maybe?

'revenue': '<?php print $ordTotal; ?>',

Andy
ECT Moderator

95440 Posts

Posted - 04/03/2019 :  08:13:42  
That looks like it should work.

Andy

Please feel free to review / rate our software
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000