I am in step 2 of installing the simple Google analytics, but I don't have a file in common called "tpl_main_page.php" I am using ZenCart 1.3.9
any idea?
Thanks and God Bless
I am in step 2 of installing the simple Google analytics, but I don't have a file in common called "tpl_main_page.php" I am using ZenCart 1.3.9
any idea?
Thanks and God Bless
You wouldn't find it there unless you copied it there from its original location. You'll want to download the file from includes/templates/template_default/common make the required changes and upload it to includes/template/andover_modern/common.
You may want to check out this article on setting template overrides.
https://www.zen-cart.com/tutorials/index.php?article=36
I don't have the page /includes/templates/[your_template]/common/tpl_main_page.php, what shall i do? Thanks!
Look a few posts below and you'll find the answer. You need to copy the file tpl_main_page.php from your template_default directory into your custom override template directory and then make adjustments to that. That is how you activate the template overrides.
If you have done this already, make sure you completed step 3 of the install.
If you think you have don all of this, view your site in a browser. While looking at it perform a 'view source'. Look for the Google Analytics tracking code on the page. Make sure it has your proper tracking id showing (if not you need to add that in the Zen Cart admin.)
If all that is in place and it still is not working you need to make sure you tell Google to "check the tracking" on the page so they know you have it in place and can start recording data for you.
Let me know if this helps.
If you provide a URL to the site that would help as well.
Thanks!
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information