Page 1 of 5 123 ... LastLast
Results 1 to 10 of 42
  1. #1
    Join Date
    Mar 2011
    Posts
    93
    Plugin Contributions
    0

    Default Easy Google Analytics - Support

    Since there isn't an Easy Google Analytics (2.1.5) thread, I'm starting one here.

    I'm on ZenCart v1.5.1. I was previously using Simple Google Analytics (1.2.6).

    In includes/templates/<your template>/common/html_header.php, there's this line:
    PHP Code:
    /**
     * include content from all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically.
     * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
     */
        
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE$current_page_base,'jscript') . '/' $value); echo "\n";
      } 
    This seems to included the includes/templates/<your template>/jscript/jscript_google_analytics.php which will include google_analytics.php already.

    So the additional line in tpl_main_page.php is redundant...
    PHP Code:
    <?php 
    if (GOOGLE_ANALYTICS_TRACKING_TYPE != "Asynchronous") {
        require(
    DIR_WS_TEMPLATE 'google_analytics/google_analytics.php');
    }
    ?>
    My question is, should one of it be removed?

  2. #2
    Join Date
    Mar 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: Easy Google Analytics - Support

    Ok, I think I've figured it out.

    Originally, the code for includes/templates/<your template>/jscript/jscript_google_analytics.php in Simple Google Analytics was:

    PHP Code:
    <?php
    /* Begin Simple Google Analytics */
      
    if (in_array($current_page_base,explode(",",'popup_image,popup_image_additional,popup_cvv_help,popup_coupon_help,popup_attributes_qty_prices,popup_search_help,popup_shipping_estimator,popup_print_invoice')) ) {
        
    //Skip outputting the tracking code as this is a pop-up window
      
    } else { // Print tracking code to page
        
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
        require(
    DIR_WS_TEMPLATE 'google_analytics/google_analytics.php');
        }
      } 
    // end if for page determination
    /* End Simple Google Analytics */
    ?>
    In the Easy Google Analytics, the inner if condition was changed to:

    PHP Code:
        if(GOOGLE_ANALYTICS_ENABLED == "Enabled"){
          require(
    DIR_WS_TEMPLATE 'google_analytics/google_analytics.php');
        } 
    I think this change could be wrong. It should still be the same as in Simple Google Analytics where it tests (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous").

    This is because the additional code in includes/templates/<your template>/common/tpl_main_page.php is testing for (GOOGLE_ANALYTICS_TRACKING_TYPE != "Asynchronous"):

    PHP Code:
    <?php 
    if (GOOGLE_ANALYTICS_TRACKING_TYPE != "Asynchronous") {
      require(
    DIR_WS_TEMPLATE 'google_analytics/google_analytics.php');
    }
    ?>

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

    Default Re: Easy Google Analytics - Support

    I've noticed a number of tracking problems when I tested the Easy Google Analytics. The way it is setup, it won't track a number of important items so you lose functionality of what is in Simple Google Analytics. The new version of Simple Google Analytics that I have here has altered a few ways tracking works and includes some new features that Google allows. In addition, the newest Simple Google Analytics version is built into the Ecommerce Amplifier framework which is built to house a few other tools that help store owners make more money with their site. (And save money in the case of Google Adwords: PPC).
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  4. #4
    Join Date
    Mar 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: Easy Google Analytics - Support

    Please describe what's missing.

  5. #5
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    562
    Plugin Contributions
    0

    Default Re: Easy Google Analytics - Support

    Hi

    I was over in the simple google analytics thread and took your advice to upgrade to easy google analytics.
    A couple of questions!
    I do not have a "documentation" folder in V1.5.0. Where do I upload \documentation\css and \documentation\images?

    I put \documentation\js in catalog/includes/templates/classic/js, Is this OK?

    I have a critical error when I run the Tag checker, No HTTP response - see picture.

    I also enclose a picture of my configuration.

    Thanks for any help!

  6. #6
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    562
    Plugin Contributions
    0

    Default Re: Easy Google Analytics - Support

    Figured out I do not need to upload the "documentation" stuff to my web site it is just part of the installation instructions.

    Played around with my configuration and it works now.

  7. #7
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    562
    Plugin Contributions
    0

    Default Re: Easy Google Analytics - Support

    The google tag checker now shows "no errors" but something is not correct.

    For example if my Zen cart Counter history shows for a day 100 - 200;the Google Analytics shows 50 users and 100 sessions.

  8. #8
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    562
    Plugin Contributions
    0

    Default Re: Easy Google Analytics - Support

    About "if my Zen cart Counter history shows for a day 100 users - 200 pages; the Google Analytics only shows 50 users and 100 sessions."

    I checked my tags on every shop page with the Google Chrome tag checker and no errors found.

    I enclose a copy of my configuration for comment.

    The installation is automated and I did not get any errors during installation. So where should I look for this problem?

  9. #9
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    562
    Plugin Contributions
    0

    Default Re: Easy Google Analytics - Support

    I realise the report for adwords paid searches is almost correct; just one different between the adwords campaign report and the analytics report of paid searches.
    Does this help to point to the cause?

  10. #10
    Join Date
    May 2011
    Posts
    90
    Plugin Contributions
    0

    Default Re: Easy Google Analytics - Support

    Hello. I have zc 1.5.4 with 2.1.6 easy google analytic installed. using universal tracking type. Everything works except E-commerce tracking. Is this plugin suppose to be tracking e-commerce sales at all? if yes then can someone explain please how to achieve this. On my previous zc version when i had simple google analytics everything was working properly with no headache. help please.

 

 
Page 1 of 5 123 ... LastLast

Similar Threads

  1. Simple Google Analytics - Support
    By cuda in forum All Other Contributions/Addons
    Replies: 2160
    Last Post: 22 Dec 2020, 05:38 AM
  2. Easy Google Analytics vs google_conversion_currency
    By enzo-ita in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 8 Nov 2014, 06:39 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR