Glad you finally got it working.
Glad you finally got it working.
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
download link for this is broke
Try the one in the Zen Downloads section. Other Contributions.
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
I'd like to add Google Analytics to my Zen cart store. There is a lot of conflicting advice on these forums regarding what is the best policy i.e. insert code yourself or use one of the modules. If module, which one gives the best results? Simple Google Analytics Module?
The easiest route is to start with the module available in the downloads section called Simple Google Analytics.
It will help with installing Google Analytics and E-Commerce tracking. However, if you want to install Conversion Tracking, you will need to manually add code to the proper page in order to get it to work.
Also, if you want to utilize Goals and Funnels, you will need to set these up separately from within your Google Analytics account.
Hopefully that helps.
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
hey guys,
does anyone else get a "Done, but with errors on page." error in IE?
when i had originally installed google analytics on my website (before zen) i ran into the error and google told me to try moving it to the header, before any other javascripts. this fixed the problem, but this mod puts it at the bottom of my zen pages and i'm seeing that familiar error again. any workarounds or advice?
also... when i double click to see the actual error it says "object expected" and refers to line 270 where my code says "urchinTracker ();"
It sounds like you might have missed adding the ".js" file to the proper directory for the analytics to start "On Load".
This would give you a js error if you loaded a page and it was given a js command to start an "object" that wasn't present (because it was never defined).
I would check to make sure you have all of the files in place (there should be 2 if you are using the Simple Google Analytics module in the dloads section).
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
i found that manually adding the code to my tpl_main_page.php and altering it made the error go away. i wonder if it is still working or did i kill it in the process? -i removed the closing and beginning statements from the two pieces of code because they seemed redundant...but i'm an amateur...
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
_uacct = "UA-xxxxxxx-x";
urchinTracker();
</script>
Make sure that if you manually add the code, that you remove the initial "third party module" as you don't want to have two different tracking codes on the same page like that (at least two of the SAME codes).
Also, did it work because you also removed the "on load" event from the page, and not just because the code was manually added?
I would check that as well.
Lastly, in the code you presented, you are missing a part. The code should look like this on the page (whether you manually enter it or use the module). In your post, it looks like you have combined everything into one .js script.
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-xxxxxx-x";
urchinTracker();
</script>
I have performed it both ways on numerous sites (with the add-on and then manually without the add-on) and the only time I ever received an error was when the on load event was not correctly added to the page, or if the code split across multiple lines (when it should have been just on one line in some spots.)
Hope that helps!
Last edited by econcepts; 19 Jul 2007 at 09:45 PM. Reason: added content
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
Bookmarks