Results 1 to 10 of 108

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Google Ecommerce Tracking

    Quote Originally Posted by Nightfly66 View Post
    Hi,

    i have this myDEBUG file in log:
    PHP Code:
    PHP Fatal error:  Class 'ec_analytics' not found in /usr/local/psa/home/vhosts/ ... /autoload_func.php on line 79 
    i use Zen Cart v 1.5.4

    Any suggestion ?

    Thx
    Not really enough information provided, but as DivaVocals stated, "Double check your installation.. sounds like you missed uploading a file" (specifically, the /includes/classes/observers/class.ec_analytics.php file)

    Cheers
    RodG

  2. #2
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Re: Google Ecommerce Tracking

    I've installed this on a client using Zen Cart 1.5.2. We're using the universal code in the footer and this plugin for ecommerce. Traffic data is working fine, but no ecommerce data.

    Enable Ecommerce and Enable Enhanced Ecommerce Reporting are both on.

  3. #3
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Re: Google Ecommerce Tracking

    Quote Originally Posted by jeking View Post
    I've installed this on a client using Zen Cart 1.5.2. We're using the universal code in the footer and this plugin for ecommerce. Traffic data is working fine, but no ecommerce data.

    Enable Ecommerce and Enable Enhanced Ecommerce Reporting are both on.
    Looks like it's a delay in reporting. Data is starting to show up now in GA.

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Google Ecommerce Tracking

    Quote Originally Posted by jeking View Post
    I've installed this on a client using Zen Cart 1.5.2. We're using the universal code in the footer and this plugin for ecommerce. Traffic data is working fine, but no ecommerce data.
    If you're using both you are probably going to get page traffic double logged.

    Cheers
    RodG

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Google Ecommerce Tracking

    Quote Originally Posted by RodG View Post
    If that is the case, one of the two modules isn't reporting the pageviews.

    Cheers
    RodG


    Not having ANY issues.. Seriously.. My client's marketing team are the ones who manage the GA stuff. They were the ones who pointed out that the ecommerce tracking was missing which is what led me to your module.. They have indicated to me that since I installed your module that everything is working correctly.. To be clear, I am NOT using any of the other Google Analytics modules for Zen Cart, I dropped the GA code that I got directly from Google Analytics..
    Last edited by DivaVocals; 6 Sep 2015 at 05:14 AM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #6
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Google Ecommerce Tracking

    Okay for posterity sake.. Here's how I am using this module.. (so anyone following our comedy act here will be clear..)

    • I have do not have any of the other Zen Cart modules or plugins installed on this site..
    • I have installed your Ecommerce tracking module as per the readme..
    • I manually add the regular GA code following the instructions from Google: Add the tracking code directly to your site

    Everything works perfectly..
    Last edited by DivaVocals; 6 Sep 2015 at 06:00 AM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #7
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Google Ecommerce Tracking

    Quote Originally Posted by DivaVocals View Post
    Got it guess we're both confused.. **lol**

    Okay for posterity sake.. Here's how I am using this module.. (so anyone following our comedy act here will be clear..)

    • I have do not have any of the other Zen Cart modules or plugins installed on this site..
    • I have installed your Ecommerce tracking module as per the readme..
    • I manually add the regular GA code following the instructions from Google: Add the tracking code directly to your site

    Everything works perfectly..
    Well, it *shouldn't* be 'working perfectly' because with this setup, any page where you've manually added the Google tracking code will (in theory) be recording double page hits. Once from the ec_analytics module and another from your manually added tracking code.

    Those instructions from Google can/should be ignored - The code snippet mentioned there is inserted into every page on the site via the ec_analytics javascript.

    Yes, I know that the google page (correctly) states "Don’t mix up tracking code snippets from different properties, and don’t reuse the same tracking code snippet on multiple domains", which I guess could imply that the 'snippet' inserted by ec_analytics isn't going to contain the site specific information, BUT the only different thing from site to site is the GOOGLE_UA number which is the reason why ec_analytics module needs this to be set on a site to site basis.
    The rest of the 'snippet' is identical across all sites.

    I would suggest that you do a 'view source' on the site where you are using ec_analytics modules and the manually added tracking code, and you'll almost certainly find two instances of

    Code:
     <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');
    There will be additional code after this (up to the closing /script tag) that will vary between the two implementations.

    The manually added code will have:
    Code:
      ga('send', 'pageview');
    </script>

    The ec_analytics added code will have
    Code:
    ga('require', 'ec');
    ga('require', 'displayfeatures');
    ga('send', 'pageview');
    </script>
    .... and there will be even more additions with the ec_analytics added code on the product info and checkout pages.

    It is important that you don't have two instances of this:
    Code:
     <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');
    </script>
    'cos in theory, Google will be recording a 'pageview' from each instance.

    Cheers
    RodG







  8. #8
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Google Ecommerce Tracking

    If I discover this is the case, How do I remove the pageview recording from your module??
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

Similar Threads

  1. Replies: 6
    Last Post: 3 Oct 2013, 10:36 PM
  2. Ecommerce Tracking code for Google Analytics
    By Endre in forum General Questions
    Replies: 7
    Last Post: 14 Nov 2012, 03:20 PM
  3. MailChimp Ecommerce MC360 tracking?
    By irishshopper in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 Oct 2010, 11:21 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