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
Previous Page
Author « Topic »
Page: of 2

dbdave
ECT Moderator

USA
10408 Posts

Posted - 10/11/2017 :  19:50:03  
Ok, looking at my setup, (.asp) it's the exact same syntax that calls up that total in both places, with the exception that the top set, all the lines end with ; and that's a javascript thing that those lines must end that way.

So if <?php print $ordTotal; ?>; worked up top, then down below you want <?php print $ordTotal; ?>

<!-- Google Code for **LP Purchase Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = XXXXXXXXXXX;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "XXXXXXXXXXXXX";
var google_conversion_value = <?php print $ordTotal; ?>;
var google_conversion_currency = "USD";
var google_remarketing_only = false;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/XXXXXXXX/?value=<?php print $ordTotal; ?>¤cy_code=USD&label=XXXXXXXXXXX&guid=ON&script=0"/>
</div>
</noscript>


For .asp it is <%= ordTotal %> in both places.

David
ECT Power User

tgorski
Ecommerce Template Expert

USA
910 Posts

Posted - 10/27/2017 :  06:18:10  
Can anyone direct me to a thread that deals with Google ecommerce tracking code on an ASP site?

Thanks!

Tim Gorski

Andy
ECT Moderator

95440 Posts

Posted - 10/27/2017 :  06:51:47  
Hi Tim

This is what you should need

https://www.ecommercetemplates.com/help/ecommplus/parameters.asp#analytics

Andy

Please feel free to review / rate our software

Phil
ECT Moderator

United Kingdom
7680 Posts

Posted - 10/27/2017 :  06:59:06  
Hi Tim,
I added this to a clients site this morning and it works perfectly.

Add the following to your includes.php
$googleanalyticsinfo=TRUE;
$usegoogleasync=TRUE;
$usegoogleuniversal=TRUE;

and add your tracking code just before the closing </body> tag: with your ID
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-xxxxxxxxxxx', 'auto');
ga('send', 'pageview');
ga('require','ecommerce','ecommerce.js');
<?php print @$googleanalyticstrackorderinfo ?>
</script>

The results on the thanks page give the following:
ga('ecommerce:addItem',{'id':'17932','name':'EVERLASTO WAXED SASH CORD No.2 RED WRAPPER 6mm x 10m','sku':'SCR21','category':'No.2 (6mm) Red Wrapper Sash Cord','price':'7.23','quantity':'1'});





* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 10/27/2017 07:00:58

tgorski
Ecommerce Template Expert

USA
910 Posts

Posted - 10/28/2017 :  06:28:43  
Thanks, guys ... you ARE appreciated!

Tim Gorski

tgorski
Ecommerce Template Expert

USA
910 Posts

Posted - 11/05/2017 :  13:43:16  
Google's recommending that new implementations use Tag Manager ... would that mean I need to add:

ga('require','ecommerce','ecommerce.js');
<?php print @$googleanalyticstrackorderinfo ?>

... before the closing script tag?

Tim Gorski

Andy
ECT Moderator

95440 Posts

Posted - 11/05/2017 :  23:52:52  
Hi Tim

I'm not sure you can use the Tag Manager but i'll look into that for you today.

Andy

Please feel free to review / rate our software

tgorski
Ecommerce Template Expert

USA
910 Posts

Posted - 11/06/2017 :  07:08:42  
Thanks, Andy ...

The only reason I'm looking into it other than Google's recommendation is that I've been able get both ASP and PHP sites configured properly such that PPC traffic and transactions are differentiated from organic, which is of course the goal, but then I have a couple sites setup exactly the same way with NO differentiation in Google's Analytics Ecommerce Overview ... aarrggghh

Tim Gorski

tgorski
Ecommerce Template Expert

USA
910 Posts

Posted - 11/24/2017 :  09:04:55  
Did you ever find anything with regard to using Google Tag Manager?

I'm having trouble getting Analytics to report on Google Shopping clicks ...

Tim Gorski

Andy
ECT Moderator

95440 Posts

Posted - 11/24/2017 :  09:38:00  
Sorry, Tim - I did look at it and there's an overview here for anyone that's interested https://support.google.com/tagmanager/answer/6102821?hl=en&ref_topic=3441530

Some of the variables for the enhanced ecommerce reporting aren't going to be available by default without a Mod as far as I can see so I think it would make a good third party application from one of the developers.

Andy

Please feel free to review / rate our software

tgorski
Ecommerce Template Expert

USA
910 Posts

Posted - 09/03/2018 :  16:15:03  
Given almost 10 months has passed since the last post on AdWords and Analytics transaction tracking, and Google has gone "a;; in" on using Tag Manager, has there been any progress on full support of Google Tag Manager in implementing regular Ecommerce Tracking or Enhanced Ecommerce Tracking??



Tim Gorski

xxcfdrr
Advanced Member

USA
231 Posts

Posted - 06/15/2021 :  08:56:16  
We need to add Enhanced Google Tracking Code to our entire web site, the firm managing our Adwords account is requesting this.

Can someone provide a clear answer on whether or not this is a possibility for our .asp ECT store?

Thank you.

Vince
Administrator

42754 Posts

Posted - 06/16/2021 :  04:03:47  
quote:
Can someone provide a clear answer on whether or not this is a possibility for our .asp ECT store?
Ecommerce tracking data is available, but Enhanced Ecommerce tracking is not I'm afraid. I will look into this in the next few days if I get time but right now the clear answer is "no", I'm afraid.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
Page: of 2 « Topic »  
Previous Page
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000