Page 146 of 217 FirstFirst ... 4696136144145146147148156196 ... LastLast
Results 1,451 to 1,460 of 2161
  1. #1451
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by it2steve View Post
    Quick question. running the latest Zen Cart with a template add-on. I don't know too much about this kind of thing but am smart enough to NOT make a change without a backup or int the middle of a rush.

    In trying to install the Google analytics I think I have it all covered except the 'last part'?
    * Ive signed up on google got my code / put it in admin/config
    * copied the two files into the proper directories on my site (renamed admin folder and 'my template' folder
    * Step 3 - made the change in tpl_main_page.php
    * Step 3 part B (HERE IS MY ISSUE) - make change in html_header.php ...
    I dont have that page listed? I'm assuming it's because of the template I am using? I have a tpl_headed.php BUT there is no </head> tag found at the bottom of it?

    Any suggestions?

    i was scared to add it to the tpl_header page as I was right in the middle of a rush and didn't wanna brick my site.
    Copy the html_header.php file from the 'template_default' directory (into your own custom directory) and then work with that. That is how you get it into there if not already present.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  2. #1452
    Join Date
    Feb 2011
    Posts
    22
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    Copy the html_header.php file from the 'template_default' directory (into your own custom directory) and then work with that. That is how you get it into there if not already present.
    Thanks for the quick reply, HOWEVER I did notice that I am getting movement on my google analytics now. Should I leave it be or is there something necessary in that header that you think I'd need? I'm not much into all the php / web stuff and like to keep it as simple as possible.

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by it2steve View Post
    Thanks for the quick reply, HOWEVER I did notice that I am getting movement on my google analytics now. Should I leave it be or is there something necessary in that header that you think I'd need? I'm not much into all the php / web stuff and like to keep it as simple as possible.
    You will need the header file if you switch to the new Asychronous tracking method Google has (you get that option from with my Analytics admin and can choose between three different tracking codes.)

    If you are using anything but the asych code it should work but I would advise for correctness to add the proper info the the html header as not doing so can cause problems in the future. Partially installing something is never a good idea.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  4. #1454
    Join Date
    Feb 2011
    Posts
    22
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    You will need the header file if you switch to the new Asychronous tracking method Google has (you get that option from with my Analytics admin and can choose between three different tracking codes.)

    If you are using anything but the asych code it should work but I would advise for correctness to add the proper info the the html header as not doing so can cause problems in the future. Partially installing something is never a good idea.
    again, thanks for your help... you don't think that copying that html_header.php will change the appearance or functionality of my 'current' template?

    If it's easier to look at what I have it's at electronicCrap.com (I know catchy) I just started this thing 10 days ago to help out with hard to find items for a select group and it's gone nuts, 100 orders in 10 days. I thought I'd use this tool to see what the possibilities of 'expanding' are.

    Just scared to mess something up that's working so well.

    [EDIT] just tried to drop it in and the site went away until I pulled it back out. any thoughts?
    Last edited by it2steve; 25 Feb 2011 at 03:31 PM.

  5. #1455
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: Simple Google Analytics - Support

    Eric which code show the most data and does the best job. The legacy 'urchin.js' tracking code, the ga.js tracking code or the newest Asynchronous tracking code released in Dec 2009 by Google. I always wondered about that. Thanks for you response.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by it2steve View Post
    again, thanks for your help... you don't think that copying that html_header.php will change the appearance or functionality of my 'current' template?

    If it's easier to look at what I have it's at electronicCrap.com (I know catchy) I just started this thing 10 days ago to help out with hard to find items for a select group and it's gone nuts, 100 orders in 10 days. I thought I'd use this tool to see what the possibilities of 'expanding' are.

    Just scared to mess something up that's working so well.

    [EDIT] just tried to drop it in and the site went away until I pulled it back out. any thoughts?
    That file should not alter the look of your template at all.

    It should drop in flawlessly and have no negative impact. If the site goes away (white page) when you drop it in that means you have a PHP error somewhere in the file (likely created from attempting to add new lines of code but not completed correctly.)

    The way to find out where your error is is to check your error log (found in your cache directory). This will tell you the exact location of the PHP error so you can correct it.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by countrycharm View Post
    Eric which code show the most data and does the best job. The legacy 'urchin.js' tracking code, the ga.js tracking code or the newest Asynchronous tracking code released in Dec 2009 by Google. I always wondered about that. Thanks for you response.
    Google says the newest code will give you the 'most' information. However, many people don't even know 'how or where' to find that info (or even set it up) by using new tracking codes so it doesn't matter.

    All forms of tracking will provide you with the basic info you need to run a successful business. I've found that the ga.js tracking code produces a larger margin of error specifically with regard to ecommerce tracking (inconsistent reporting) so I never personally use that.

    I tend to stay with either the older urchin methods (for most accurate results) and have been migrating to the asych tracking on a few sites. ONce I determine the asych tracking is as accurate in core data (the info I use to run a business) as the legacy urchin code I'll migrate to that fully.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    Google says the newest code will give you the 'most' information. However, many people don't even know 'how or where' to find that info (or even set it up) by using new tracking codes so it doesn't matter.

    All forms of tracking will provide you with the basic info you need to run a successful business. I've found that the ga.js tracking code produces a larger margin of error specifically with regard to ecommerce tracking (inconsistent reporting) so I never personally use that.

    I tend to stay with either the older urchin methods (for most accurate results) and have been migrating to the asych tracking on a few sites. ONce I determine the asych tracking is as accurate in core data (the info I use to run a business) as the legacy urchin code I'll migrate to that fully.
    Thanks for the information
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  9. #1459
    Join Date
    Dec 2010
    Posts
    35
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I have installed the Google Analytics by Andrew, but I can't find the support thread for it. Would anybody direct me to the right thread.

    Thanks to All

  10. #1460
    Join Date
    Dec 2010
    Posts
    27
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    Just submitted a new 1.2.4 version of this mod that includes a fix for the popup window issue some have experienced.

    If you have 1.2.3 version you do not need to upload any files. All you have to do is take the following action to remedy the situation.

    Open the file "html_header.php" file from your template directory 'common' folder (making sure you have the proper location for the template you are using if custom.)

    1) Once opened, find the section of code that looks like this (usually just before the closing </HEAD> tag):

    Find this:
    -------------------------------------------------
    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    }
    ?>
    And change to this:
    --------------------------------------------------
    <?php
    /* Begin Simple Google Analytics */
    if (in_array($current_page_base,explode(",",'popup_image,popup_image_additional,pop up_cvv_help,popup_coupon_help,popup_attributes_qty_prices,popup_search_help,popu p_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 */
    ?>
    That should correct the issue. If you find that any other pages are causing the same issue (I think I got them all) just add that to the array shown here and it will eliminate the problem on those pages.)

    If you can' wait for the new version to be activated in the Zen Cart downloads section you can get the newest version from the following link right now:

    http://www.zencartoptimization.com/downloads/

    Post any issues in this forum.
    Thanks for this fix, was a bit boggled by this. I know this post was a while ago but I have made one addition to a popup which was not included and fixed the space in the wordings. I shall highlight the addition in bold.

    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,info_shopping_cart')) ) {
    //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 */
    ?>

 

 

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