Page 184 of 217 FirstFirst ... 84134174182183184185186194 ... LastLast
Results 1,831 to 1,840 of 2161
  1. #1831
    Join Date
    Apr 2012
    Posts
    15
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by jeking View Post
    Yaro,

    There are a few more steps you need to follow, including some file edits. Go back through the instructions, you'll find the steps you missed.
    Jeking, thank you!

    I've did everything according to the installation manual, including file changes, I added this code into tpl_main_page.php:

    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    // Do nothing
    } else {
    require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php');
    }
    ?>

    </body>

    And I installed the SQL patch (uploaded a file through the ZC admin)

    Why the GA code is not showing now?

  2. #1832
    Join Date
    Nov 2010
    Posts
    35
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Ok, didn't want to go through all these pages, but maybe someone can point out if there is something wrong with my google analytics ??
    www.shopenviousgems.com

    TIA

  3. #1833
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: Simple Google Analytics - Support

    Let me say this to you. Since version 1.2.5 the html_header.php is no longer needed. The code for Simple Google Analytics in that file can be deleted. Here is the upgrade instruction to get it to work for your site. Yes the change in code is needed.

    ************************************************************
    ************************************************************
    ************************************************************
    Author: Eric Leuenberger (Zen ID: econcepts) http://www.ecommerceamplifier.com
    Contribution Name: Simple Google Analytics
    Version Date: v 1.2.5c 04/13/2012
    Updated By: CountryCharm
    License: under the GPL - See attached License for info.
    ************************************************************
    Designed for: Zen Cart v1.5.0.
    ************************************************************
    -------------------------------------------------------------------------
    UPGRADING FROM PREVIOUS VERSIONS OF SIMPLE GOOGLE ANALYTICS:
    --------------------------------------------------------------------------
    !!!BACKUP!!! ALWAYS MAKE SURE YOU HAVE AN UP TO DATE BACKUP OF YOUR FILES and MySQL DATABASE BEFORE INSTALLING
    You should test this on TEST SITE before going live!!!!!!!
    --------------------------------------------------------------------------
    Upgrading Simple Google Analytics from 1.3x compatible version to v1.5.0 ready version.

    1. Unzip the contribution.

    2. Open the zen_1.5.0 and then the upgrade folder.

    3. Change the admin folder name to match the name of your custom directory and ftp to your sever.

    4. Run the included 1-5-0_upgrade.sql using the Zen-Cart Sql Patches tool (admin -> tools -> install sql patches)
    For best results, copy-and-paste the code into the query field and press 'Send'.
    Delete the files in admin/includes/boxes/extra_boxes/ (these files are now obsolete and should be deleted in their entirety!!)

    5. NOTE: If you were using a previous version (1.2.x) of Google Analytics (prior to 1.2.3) then you'll need to change the code in the previous locations

    At the bottom of /includes/templates/[your_template]/common/tpl_main_page.php

    Find the lines of code that look like this (found below) just before the </body> tag:

    PHP Code:
    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    require(
    $template->get_template_dir('.php',DIR_WS_TEMPLATE$current_page_base,'google_analytics') . '/google_analytics.php');
    }
    ?>

    CHANGE / replace the lines of code to look like this:


    PHP Code:
    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    // Do nothing
    } else {
    require(
    DIR_WS_TEMPLATE 'google_analytics/google_analytics.php');
    }
    ?>
    6.) In Version 1.2.5 a new override file is being used so there are a few lines of code you need to remove from a file (altered in previous versions) on your site.
    This override file prevents the need for altering the 'html_header.php" file (as in some earlier versions.)

    After uploading all files to the server do the following:

    6a) Open the file found at: /includes/templates/[your_template]/common/html_header.php


    6b) Find the lines that look like this just before the </head> tag and REMOVE them (delete). Save the file and re-upload to your server.

    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')) ) {
        
    //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(
    $template->get_template_dir('.php',DIR_WS_TEMPLATE$current_page_base,'google_analytics') . '/google_analytics.php');
        }
      } 
    // end if for page determination
    /* End Simple Google Analytics */
    ?>

    --------------------------------------------------------------------------
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  4. #1834
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: Simple Google Analytics - Support

    What version of the Simple Google Analytics tracking are you using?
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  5. #1835
    Join Date
    Nov 2010
    Posts
    35
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by countrycharm View Post
    Let me say this to you. Since version 1.2.5 the html_header.php is no longer needed. The code for Simple Google Analytics in that file can be deleted. Here is the upgrade instruction to get it to work for your site. Yes the change in code is needed.

    ************************************************************
    ************************************************************
    ************************************************************
    Author: Eric Leuenberger (Zen ID: econcepts) http://www.ecommerceamplifier.com
    Contribution Name: Simple Google Analytics
    Version Date: v 1.2.5c 04/13/2012
    Updated By: CountryCharm
    License: under the GPL - See attached License for info.
    ************************************************************
    Designed for: Zen Cart v1.5.0.
    ************************************************************
    -------------------------------------------------------------------------
    UPGRADING FROM PREVIOUS VERSIONS OF SIMPLE GOOGLE ANALYTICS:
    --------------------------------------------------------------------------
    !!!BACKUP!!! ALWAYS MAKE SURE YOU HAVE AN UP TO DATE BACKUP OF YOUR FILES and MySQL DATABASE BEFORE INSTALLING
    You should test this on TEST SITE before going live!!!!!!!
    --------------------------------------------------------------------------
    Upgrading Simple Google Analytics from 1.3x compatible version to v1.5.0 ready version.

    1. Unzip the contribution.

    2. Open the zen_1.5.0 and then the upgrade folder.

    3. Change the admin folder name to match the name of your custom directory and ftp to your sever.

    4. Run the included 1-5-0_upgrade.sql using the Zen-Cart Sql Patches tool (admin -> tools -> install sql patches)
    For best results, copy-and-paste the code into the query field and press 'Send'.
    Delete the files in admin/includes/boxes/extra_boxes/ (these files are now obsolete and should be deleted in their entirety!!)

    5. NOTE: If you were using a previous version (1.2.x) of Google Analytics (prior to 1.2.3) then you'll need to change the code in the previous locations

    At the bottom of /includes/templates/[your_template]/common/tpl_main_page.php

    Find the lines of code that look like this (found below) just before the </body> tag:

    PHP Code:
    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    require(
    $template->get_template_dir('.php',DIR_WS_TEMPLATE$current_page_base,'google_analytics') . '/google_analytics.php');
    }
    ?>

    CHANGE / replace the lines of code to look like this:


    PHP Code:
    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    // Do nothing
    } else {
    require(
    DIR_WS_TEMPLATE 'google_analytics/google_analytics.php');
    }
    ?>
    6.) In Version 1.2.5 a new override file is being used so there are a few lines of code you need to remove from a file (altered in previous versions) on your site.
    This override file prevents the need for altering the 'html_header.php" file (as in some earlier versions.)

    After uploading all files to the server do the following:

    6a) Open the file found at: /includes/templates/[your_template]/common/html_header.php


    6b) Find the lines that look like this just before the </head> tag and REMOVE them (delete). Save the file and re-upload to your server.

    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')) ) {
        
    //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(
    $template->get_template_dir('.php',DIR_WS_TEMPLATE$current_page_base,'google_analytics') . '/google_analytics.php');
        }
      } 
    // end if for page determination
    /* End Simple Google Analytics */
    ?>

    --------------------------------------------------------------------------

    ^^^ Is this for me ?? LOL
    I had someone else do this for me a few months ago. So I don't understand this at all.
    But i guess I can show that person the above...

    Thank you

  6. #1836
    Join Date
    Nov 2010
    Posts
    35
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by countrycharm View Post
    What version of the Simple Google Analytics tracking are you using?
    Where would I find that Info ??
    Like I said above, had someone else do it for me. She got me set-up / started and I just put up my products on the site and fill orders.

  7. #1837
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by notageek View Post
    Hi, Countrycharm, thanks very much for your help.

    So far, I have checked the installed code that used to work, and I am wondering why the code you mention is not the same; and also, why you have not mentioned the code that is in the html_header.php file.

    In my tpl_main_page.php file I have this code--is it really wrong if it used to work?

    Code:
    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    // Do nothing
    } else {
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    }
    ?></body>
    In my html_header.php file I have the following code:

    Code:
    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    }
    ?></head>
    <?php // NOTE: Blank line following is intended: ?>
    Secondly, following your suggestion, I tried to see if my site was receiving tracking, and although so far I cannot see where to edit my site data, I saw that it says "Tracking not installed."

    I'm still trying to see where to find out how to install the tracking in Google Analytics, because in my site it does have the tracking code entered in Admin, and it used to track. I now recall that I did change the Google Analytics view to the new version, and am wondering if that has any relationship to losing ability to track my site.

    I will just keep looking around the Google Analytics site to see if I can get somewhere. At the moment it takes me everywhere but where the answers are, it seems. I will let you know if I get somewhere with this problem, but in the meantime just have the curiosity about why my tracking code is different from the one you suggest, and why you do not mention the html_header.php tracking code.

    Notageek
    OK I figured out how to use the reply now....lol This is for you.

    Quote Originally Posted by countrycharm View Post
    Let me say this to you. Since version 1.2.5 the html_header.php is no longer needed. The code for Simple Google Analytics in that file can be deleted. Here is the upgrade instruction to get it to work for your site. Yes the change in code is needed.

    ************************************************************
    ************************************************************
    ************************************************************
    Author: Eric Leuenberger (Zen ID: econcepts) http://www.ecommerceamplifier.com
    Contribution Name: Simple Google Analytics
    Version Date: v 1.2.5c 04/13/2012
    Updated By: CountryCharm
    License: under the GPL - See attached License for info.
    ************************************************************
    Designed for: Zen Cart v1.5.0.
    ************************************************************
    -------------------------------------------------------------------------
    UPGRADING FROM PREVIOUS VERSIONS OF SIMPLE GOOGLE ANALYTICS:
    --------------------------------------------------------------------------
    !!!BACKUP!!! ALWAYS MAKE SURE YOU HAVE AN UP TO DATE BACKUP OF YOUR FILES and MySQL DATABASE BEFORE INSTALLING
    You should test this on TEST SITE before going live!!!!!!!
    --------------------------------------------------------------------------
    Upgrading Simple Google Analytics from 1.3x compatible version to v1.5.0 ready version.

    1. Unzip the contribution.

    2. Open the zen_1.5.0 and then the upgrade folder.

    3. Change the admin folder name to match the name of your custom directory and ftp to your sever.

    4. Run the included 1-5-0_upgrade.sql using the Zen-Cart Sql Patches tool (admin -> tools -> install sql patches)
    For best results, copy-and-paste the code into the query field and press 'Send'.
    Delete the files in admin/includes/boxes/extra_boxes/ (these files are now obsolete and should be deleted in their entirety!!)

    5. NOTE: If you were using a previous version (1.2.x) of Google Analytics (prior to 1.2.3) then you'll need to change the code in the previous locations

    At the bottom of /includes/templates/[your_template]/common/tpl_main_page.php

    Find the lines of code that look like this (found below) just before the </body> tag:

    PHP Code:
    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    require(
    $template->get_template_dir('.php',DIR_WS_TEMPLATE,  $current_page_base,'google_analytics') . '/google_analytics.php');
    }
    ?>

    CHANGE / replace the lines of code to look like this:


    PHP Code:
    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    // Do nothing
    } else {
    require(
    DIR_WS_TEMPLATE 'google_analytics/google_analytics.php');
    }
    ?>
    6.) In Version 1.2.5 a new override file is being used so there are a few lines of code you need to remove from a file (altered in previous versions) on your site.
    This override file prevents the need for altering the 'html_header.php" file (as in some earlier versions.)

    After uploading all files to the server do the following:

    6a) Open the file found at: /includes/templates/[your_template]/common/html_header.php


    6b) Find the lines that look like this just before the </head> tag and REMOVE them (delete). Save the file and re-upload to your server.

    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'))  ) {
        
    //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(
    $template->get_template_dir('.php',DIR_WS_TEMPLATE,  $current_page_base,'google_analytics') . '/google_analytics.php');
        }
      } 
    // end if for page determination
    /* End Simple Google Analytics */
    ?>

    --------------------------------------------------------------------------
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  8. #1838
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by Enviousgems View Post
    Ok, didn't want to go through all these pages, but maybe someone can point out if there is something wrong with my google analytics ??
    www.shopenviousgems.com

    TIA
    Quote Originally Posted by countrycharm View Post
    What version of the Simple Google Analytics tracking are you using?
    I would download the latest Google Analytics and install it.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  9. #1839
    Join Date
    Nov 2010
    Posts
    35
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by countrycharm View Post
    I would download the latest Google Analytics and install it.

    Thanks, it's on my list for the person that will be doing my 1.5 Upgrade

  10. #1840
    Join Date
    Apr 2012
    Posts
    15
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by Yaro View Post

    Hello everybody!

    I install this Google Analytics on my ZenCart website, 1.3.9, and it seemed that it was installed correctly - at least the "Google Analytics Configuration" appeared in the "Configuration" menu and I was able to insert my GA account number into it. But then it stuck - GA says that ...Tracking Not Installed... and I checked the Page Source - GA tracking code was not there... What did I do wrong?
    In order not to duplicate my post, I'm just replying myself to it. Still, looking forward to get some help from gurus of ZenCart!
    ZC version - 1.3.9, Google addon - 1.5, I installed it successfully, everything went fine until I saw in GA that "Tracking Not Installed"... how this may happen!? What should be my next steps? De-install the Google Analytics addon? how? Or re-install it? PLS, HELP. My site - Aptekarus.com

    Thank you in advance.

    The website (I have just launched it) - www.aptekarus.com

    Thanks in advance for any help!

 

 

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

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