Without using the Google Simple Analytics mod could one just create a folder and file within "your template" and copy and paste the javascript from google into that folder to get the same result?
Without using the Google Simple Analytics mod could one just create a folder and file within "your template" and copy and paste the javascript from google into that folder to get the same result?
just find the file with
</body>
in it and paste it above that (put a copy in your template folder)
(common/tpl_main_page.php)
Thats what I thought. Thanks for the confirmation.
Thanks Mike.
I tried using the Google Analytics mod on my Zen Cart and I kept getting that stupid "secure and non-secure pages" pop up. I combed the code to try to figure out what the problem was, but couldn't figure it out. I finally ended up removing it and all my secure pages worked perfectly. So am I losing out on anything by not using the mod, if I just paste my GA code into my common/tpl_main_page.php file?
Have you check out the Google Analytics Support thread?
http://forum.zen-cart.com/showthread.php?t=53701
M
The new analytics mod by Andrew has a reference to http://www.example.com in the javascript. That is why you get the secure/unsecure warning. I tried this mod too and got the same result. You can either go in and remove any reference to these example pages in the code or just add the google javascript to the footers in your store. I did this and my google analytics reports work great. Adding the javascript to the footers also allows you to add the more advanced javascript from google for more detailed reports.
I'd like to do this trick, too! Only I'm using a template and in my /common/ folder there's only a file named tpl_header.php. No tpl_footer or tpl_mainpage...
What can I do?