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 Analytics setup, just checking
Author « Topic »  

John Nolan
Advanced Member

Canada
409 Posts

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

Posted - 12/29/2017 :  07:24:13  
Let me see if I have this straight. Please let me know if I'm misunderstanding.

To set up analytics I add this code just above the closing body tag on all my ecommerce pages:

<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-xxxxxxxx-x', 'auto');
ga('send', 'pageview');
ga('require','ecommerce','ecommerce.js');
<?php print @$googleanalyticstrackorderinfo ?>
</script>

and in includes.php I add:

$googleanalyticsinfo=TRUE;
$usegoogleasync=TRUE;
$usegoogleuniversal=TRUE;

Edited by - John Nolan on 12/29/2017 07:24:59

Andy
ECT Moderator

95440 Posts

Posted - 12/29/2017 :  07:27:01  
Hi John

That's right although I don't think you need this any longer

$usegoogleasync=TRUE;

Andy

Please feel free to review / rate our software

John Nolan
Advanced Member

Canada
409 Posts

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

Posted - 12/29/2017 :  07:31:07  
Thanks so much.

What great support!
  « 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