Yes. You may manually move this code just before the </body> tag.
Yes. You may manually move this code just before the </body> tag.
I was getting javascript errors after installing this mod but fixed it by changing the code to this
if ($request_type == 'NONSSL') {
$google_analytics_url = "http://www.google-analytics.com/urchin.js";
} else {
$google_analytics_url = "https://ssl.google-analytics.com/urchin.js";
}
echo '<script type="text/javascript" src="' . $google_analytics_url . '"></script>
<script type="text/javascript">
_uacct = "' . GOOGLE_ANALYTICS_UACCT . '";
urchinTracker();
</script>';
?>
in file YOUR_ZEN_FOLDER/includes/templates/YOUR_TEMPLATE/jscript/jscript_google_analytics.php
Small change I know but the script type must go before the src
Not setup an account at Google Analytics yet but fingers crossed this will work fine
UK based Zen Cart Web Designer here www.handcoded.co.uk
I use original Google Analytics code. And no jscript error. What browser you use?Originally Posted by longstockings
My bad
Found the problem was with image handler 2 and that image hover thing among others.
Can an admin delete this and the previous 2 posts as I would hate to give the impression that this contribution is in any way a bit crumby.
FYI I use Firefox but had to test the site in IE and had javascript errors all over the place but these have now been resolved
Sorry a_berezin![]()
UK based Zen Cart Web Designer here www.handcoded.co.uk
No problem.
If you use Firefox. I recomend you to use it with nice FireBug extention.
1. v 1.0.1 24.08.2006 16:51
1) Support zen-cart 1.2.x
2) Clear code
This is a seperate version of 1.2.x only?Originally Posted by a_berezin
Doesn't bother me - I get more out of using it, than the concern of black helicopters and transmitters hidden in dollar bills keeps me awake at night.Originally Posted by Woodymon
For example, part of the "payback" you get for using it is that, of course, you may well get a better PR - google can see exactly HOW your traffic is coming in, even for those without the googlebar. Hence, it can rank you better.
Hi Andrew,Originally Posted by a_berezin
I (think) I've followed the install instructions but I can't get this to work with 1.2.7d. The Admin menus appear etc. but the code is not entered on each page in my store by the java script.
Quote the JScript Readme
Could it be this? As a test I changed jscript_google_analytics.php to jscript_google_analytics.js and the code is then loaded but obviously with errors.JavaScript Override How-To
Any file in this directory with the following filename format will be loaded globally on every page of your shop:
jscript_{unique_name}.js
I tried with the default install on my V1.3.0.2 test site and that was fine so I assume there were changes made here between 1.2.x and 1.3.x?
Any help would be appreciated.
Regards
Brent
Bookmarks