Re: Simple Google Analytics - Support
Quote:
Originally Posted by
it2steve
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.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
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.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
it2steve
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.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
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?
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.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
it2steve
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.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
countrycharm
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.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
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
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
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
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:
-------------------------------------------------
Quote:
<?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:
--------------------------------------------------
Quote:
<?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 */
?>