Results 1 to 10 of 2161

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Ecommerce conversions not tracking

    I can't figure this out. I have set up GA and this mod, tracking is working but no purchase info is being tracked.
    I ran a test order and verified that this code is at the bottom of the 'checkout_success' page.
    HTML 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-1412881-2");
    pageTracker._initData();
    pageTracker._trackPageview();
    
    pageTracker._addTrans(
    "24",
    "",
    "91.88",
    "3.40",
    "0.00",
    "Aurora",
    "Colorado",
    "United States"
    );
    
    pageTracker._addItem(
    "24",
    "180",
    "Discovery",
    "Wine of the Month Club Full Year",
    "85.00",
    "1"
    );
    pageTracker._trackTrans();</script>
    I am trying to understand GA Funnels and Goals, but do I need to set a Goal and a Funnel for this transaction tracking to work?

    One thing that has me very unsure is that I have my ZC installed in the /shop subdirectory, so in GA I set the site as:
    http://www.mysite.com/shop/
    and home page as index.php, index.php?mainpage=, index.php?mainpage=index

    Any GA gurus know what I'm doing wrong here???

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

    Default Re: Ecommerce conversions not tracking

    Quote Originally Posted by BassFace View Post
    I can't figure this out. I have set up GA and this mod, tracking is working but no purchase info is being tracked.
    I ran a test order and verified that this code is at the bottom of the 'checkout_success' page.
    HTML 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-1412881-2");
    pageTracker._initData();
    pageTracker._trackPageview();
    
    pageTracker._addTrans(
    "24",
    "",
    "91.88",
    "3.40",
    "0.00",
    "Aurora",
    "Colorado",
    "United States"
    );
    
    pageTracker._addItem(
    "24",
    "180",
    "Discovery",
    "Wine of the Month Club Full Year",
    "85.00",
    "1"
    );
    pageTracker._trackTrans();</script>
    I am trying to understand GA Funnels and Goals, but do I need to set a Goal and a Funnel for this transaction tracking to work?

    One thing that has me very unsure is that I have my ZC installed in the /shop subdirectory, so in GA I set the site as:
    http://www.mysite.com/shop/
    and home page as index.php, index.php?mainpage=, index.php?mainpage=index

    Any GA gurus know what I'm doing wrong here???
    You do NOT need to setup Goals or Funnels for Ecom transactions to work. They are handy to have but are a totally separate tracking feature provided by Google Analytics (triggered and based upon url usually).

    It doesn't matter if you have your cart in a subdirectory or not as long as you setup your goals to point to the proper location (and then properly setup your funnels to do so as well.)

    In short though you do not need to set up those two in order for the transaction (ecom portion) to work.

    Here are two links that might help you figure out how to make it work:


    Google Analytics Demystified: Part 5 Goal Tracking and Funnels


    Google Analytics Uncovered for Zen Cart
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  3. #3
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Re: Ecommerce conversions not tracking

    Quote Originally Posted by econcepts View Post
    You do NOT need to setup Goals or Funnels for Ecom transactions to work. They are handy to have but are a totally separate tracking feature provided by Google Analytics (triggered and based upon url usually).

    It doesn't matter if you have your cart in a subdirectory or not as long as you setup your goals to point to the proper location (and then properly setup your funnels to do so as well.)

    In short though you do not need to set up those two in order for the transaction (ecom portion) to work.

    Here are two links that might help you figure out how to make it work:


    Google Analytics Demystified: Part 5 Goal Tracking and Funnels


    Google Analytics Uncovered for Zen Cart
    Thank you for those links. It has started tracking sales . Perhaps there is just a delay in the reports on the GA site?

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

    Default Re: Simple Google Analytics - Support

    Glad to see it's now working for you. :)
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

 

 

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