• Skip to main content
  • Skip to primary sidebar

Zen Cart Optimization

Practical How To's for Increasing Ecommerce Sales

  • Home
  • Categories
    • Blogging
    • Conversion
    • Customer Retention
    • Design & Usability
    • E-Commerce Optimization
    • Email Marketing
    • Featured
    • Marketing Strategies
    • Marketing Strategies
    • Mobile Commerce
    • Podcasts
    • Search Marketing
    • Shopping Cart Abandonment
    • Social Media
    • Website Analytics
    • Zen Cart Google Analytics
    • Zen Cart Optimization
    • Zen Cart Recurring Billing
You are here: Home / Zen Cart Contributions / NEW RELEASE: Simple Google Analytics v1.2.0 – New “ga.js” code compatible

NEW RELEASE: Simple Google Analytics v1.2.0 – New “ga.js” code compatible

by Eric Leuenberger 16 Comments

Version 1.2.0 of Simple Google Analytics (for Zen Cart) now uses the updated “ga.js” tracking code released by Google in December 2007.

The older urchin.js tracking code will be phased out, and no longer will be supported after the end of the year by Google.

The newer ga.js tracking code provides increased reporting capability and is considered “lighter weight” from a code perspective.

Features of Version 1.2.0

  • Adds standard Google Tracking to website
  • Automatically Adds E-Commerce tracking to website
  • Adds the ability for you to install Google Conversion Tracking
  • Uses the new “ga.js” code released by Google in December 2007

How to Download Version 1.2.0
You can download this new version by clicking here. You will be taken to my downloads page where you can select the new 1.2.0 version.

Complete instructions are enclosed in the download to assist you in either upgrading (from previous versions) or “new installations”. Please make sure you read the instructions carefully for upgrading etc… It is easy and straight forward, but you should be aware of a few file changes.

A screenshot of new version 1.2.0 is below for reference:

Simple Google Analytics for Zen Cart version 1.2.0

Filed Under: Zen Cart Contributions

About Eric Leuenberger

Eric Leuenberger is an ecommerce marketing expert and author. He coaches store owners using his online coaching system Ecommerce Amplifier teaching them how to increase website sales using his proven six step process.

Reader Interactions

Comments

  1. sheds says

    January 17, 2008 at 6:45 am

    Do you know what the Extra Reporting is?

    Reply
  2. econcepts says

    January 17, 2008 at 4:12 pm

    It is wise to switch over as the old urchin code will not be supported very long (end of the year). I have not yet noticed any new “extreme” differences, but as Google puts it … and I quote … you should install the new updated ga.js code because it:

    “lets you take advantage of upcoming advanced features and sophisticated reporting”

    I’m sure I’ll be writing on any new reporting features as I test them. Keep your eyes open.

    Reply
  3. Vincent says

    November 20, 2008 at 7:29 am

    Hi Eric,

    Google has updated their analytics tracking code.

    Where it formerly stated:

    var pageTracker = _gat._getTracker(“UA-XXXXXX-XX”);
    pageTracker._initData();
    pageTracker._trackPageview();

    It now is:

    try {
    var pageTracker = _gat._getTracker(“UA-XXXXXX-XX”);
    pageTracker._trackPageview();
    } catch(err) {}

    I don’t know what difference it makes, but maybe the plugin can be updated?

    Cheers,
    Vincent

    Reply
  4. Eric Leuenberger says

    November 21, 2008 at 2:33 pm

    Thanks for the info Vincent. Yes, I’ll be updating the plugin with it once I determine the effect it has.

    Thanks!

    Reply
  5. DQ says

    February 26, 2009 at 4:34 pm

    Have you determined the effect? I’m dealing with an odd subdomain shopping cart and was just adding the line:
    pageTracker._setDomainName(“.example.com”);

    When I realized that the tracking code Google supplied was different than the one in your tool. Everything seemed to be working except I had a problem with properly tracking order referrals. It kept saying the referrer was my www domain. Lame. Hopefully google’s advice to add that line will help.

    Should I just leave your code as the old Google code? I’m afraid I’ll break it beyond adding the one line.

    Reply
  6. Eric Leuenberger says

    February 27, 2009 at 3:18 pm

    Leaving the code as is will not affect tracking at this point.

    I will be updating that code in the future but the current code is ok.

    Reply
  7. WP says

    July 18, 2009 at 1:16 pm

    I received an error on the checkout success page:

    Fatal error: require() [function.require]: Failed opening required ‘includes/templates/olivus_template/checkout_success//google_analytics.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/olivus/public_html/includes/templates/olivus_template/common/tpl_main_page.php on line 180

    Reply
  8. Eric says

    July 19, 2009 at 7:21 am

    If you are using my module (Simple Google Analytics) then there shouldn’t be a any files loaded into the “checkout_success” directory at all. You need to only upload the files as is for it to work (make sure you change the custom directory to something that matches yours).

    Two things I notice here.

    1) You have a double slash in the url after “checkout_success”

    2) The file “google_analytics.php” is in the wrong location and should be removed from the checkout_success directory. It should be in the following directory for the module to work:

    /includes/templates/(your template here)/google_analytics/google_analytics.php

    As long as the file is in the right location you should be ok.

    Reply
  9. WP says

    July 25, 2009 at 3:15 pm

    I have vs 1.1 I’ll upgrade to 1.2 and see if this corrects the problem.

    I have a file tpl_footer.php in my checkout_success directory which is for my affiliate tracking program. is this OK?

    Reply
  10. Eric says

    July 25, 2009 at 9:00 pm

    The problem is very likely your Affiliate program. I suspect it is JROX. If that’s the case the “tpl_footer” file in the checkout_success directory is overwriting the code for analytics on that same page.

    Here is the instructions I posted to correct that issue:

    http://www.zen-cart.com/forum/showpost.php?p=758308&postcount=963

    Reply
  11. Tim says

    November 24, 2009 at 2:44 pm

    Thanks for this add-on! You made it very easy for me to implement analytics on my site. I followed your instructions and everything worked just fine.

    Reply
  12. Whitney says

    December 19, 2010 at 8:26 pm

    Hello,

    We’re using Zen Cart, but we paid a programmer to do a lot of customization to our page as a whole. I tried to add the Simple Google Analytics module myself and my conversions and ecommerce analytics aren’t tracking. How do I troubleshoot this?

    Thanks 🙂

    Reply
    • Eric Leuenberger says

      December 20, 2010 at 1:29 am

      Make sure you have activated ecommerce tracking in you google analytics profile. If you haven’t done that, you won’t get info on any ecom transactions.

      Reply
  13. Whitney says

    December 24, 2010 at 5:27 am

    Yeah, that’s done. It looks like I had a conversion track the in AdWords but my analytics is still showing just zeros. It’s definitely set on “yes” to be an ecommerce site though…

    Reply
  14. Pankaj says

    February 17, 2011 at 3:43 am

    I tried uploading few files Simple_Google_Analytics_ver1-2-4 and SQL patch as well …still my Google analytic s not working …

    can some one tell me step by step procedure how to do and what all files we have to edit

    Help with the details will be appreciated
    Pankaj

    Reply
    • Eric Leuenberger says

      February 17, 2011 at 8:44 am

      The readme file that comes with the package has a step by step process detailed out. That should help.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Sponsors

MemberPress Wordpress Membership Site Plugin

Categories

  • Articles
  • Blogging
  • Breaking News
  • Conversion
  • Customer Retention
  • Design & Usability
  • E-Commerce Optimization
  • Email Marketing
  • Featured
  • Marketing Strategies
  • Mobile Commerce
  • Search Marketing
  • Shopping Cart Abandonment
  • Social Media
  • Uncategorized
  • Website Analytics
  • Zen Cart Contributions
  • Zen Cart Optimization
  • Zen Cart Recurring Billing

Copyright © 2023