Results 1 to 10 of 43

Hybrid View

  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
    568
    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
    568
    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
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Easy Google Analytics - Support

    I know you mentioned that you closed the comment string and that didn't appear to be it.

    That error typically does mean an opening comment was not closed. Can you post what the line of code looks like now that you 'closed it' to make sure all looks ok?

    Could it be that the file referenced refers to another file that potentially has issues?
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

 

 

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

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