Results 1 to 10 of 2161

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by gsdcypher View Post
    Trying to read through this thread. I was trying to update to google analytics 1.2.2 in my cart 1.3.8a. Does the new ga.js code not work?

    I have edited and changed some files and now I'm lost.

    Also where does this code go????

    Code:
     
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-xxxxxx-x");
    pageTracker._initData();
    pageTracker._trackPageview();
    </script>
    Thanks.
    The ga.js code works, but GOOGLE has a glitch on their end which causes the ecommerce tracking to now work properly (missing data at random). So I suggest using the Urchin version until they fix the bug on their end.

    You do not have to insert code as you indicated anywhere on the site.

    All you have to do is insert one line (see step 3 of the install) into the tpl_main_page.php" page. That inserts the code automatically onto your pages in the proper location.

    Don't forget to ad your tracking code in the Admin configuration.

    In the code you show it still says "UA-xxxxx-x" and that is for sample purposes only. You need to add your tracking code in the Admin in order for that to be replaced with your own.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  2. #2
    Join Date
    Dec 2007
    Posts
    86
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Hey econcepts, it works now. For some reason, when I first got the code, it was missing a dashed number at the end. When I checked it a couple of days ago, there was still the original number. When I just checked it now, google had added another number to my code. It works now. Thanks.
    Christine

 

 

Similar Threads

  1. v150 Simple Google Analytics .sql error !
    By Miff in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Feb 2012, 11:33 PM
  2. Simple Google Analytics-not working
    By RobertG in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 11 Nov 2010, 06:07 PM
  3. Simple (From Google) Analytics Install
    By DagLindt in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 May 2009, 10:46 PM
  4. Simple google analytics- help
    By Pet Herbal Remedies in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 1 Oct 2008, 10:37 PM
  5. Simple Google Analytics not working
    By jvanree in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 May 2008, 03:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg