Quote Originally Posted by parasols View Post
Hi,

I installed the google analytics module on v1.3.8, and have followed all the instructions but am getting the below message (I installed the module yesterday morning and have been getting the message since in my google analytics account):
Tracking Not Installed (Last checked: Apr 19, 2009 5:28:41 PM )
The Google Analytics tracking code has not been detected on your website's home page. For Analytics to function, you or your web administrator must add the code to each page of your website.

Did I miss something or does it take a while for it to find the code?
I can't seem to figure out what i've done wrong

I have checked the source info on my home page and don't see the code that I installed on the bottom of tpl_main_page.php

This is the code (only the bold part) I pasted into the file:
<!--eof- banner #6 display -->
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE,
$current_page_base,'google_analytics') . '/google_analytics.php');
?>

</body>

Are there spaces between the code and </body> that are missing? Would that make a difference

however when I check the main page source I don't see this, all I see is at the end:
</div>
<!--bof- parse time display -->
<!--eof- parse time display -->
<!--bof- banner #6 display -->
<!--eof- banner #6 display -->

The other thing, when I am in the Admin Page for Zen Cart and check the source code I see the below, however the Google Analytics Web Property ID (shown below) is not the one I have for my page.... ?
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5907240-1");
pageTracker._trackPageview();
</script>

thanks in advance for your help
I replied with some details via PM as well (in response to your PM to me) but wanted to list a brief summary here for others.

1) for the tracking id being different I would recommend checking to make sure the id in the admin is the correct one. Type the proper one in there for the site you are tracking. If that still does not change the id then someone has manually entered the tracking code on the site in a file and that would need to be removed.

2) in 99% of the cases where tracking code does not show on the bottom of the pages even though one added the line of code in step 3 of the install instructions, the code was entered on the wrong page.

If you are using a custom template make sure you follow the overrides and add the code to that file. If you add it to the default template then upload but you are using a custom template, the code will not show and likely be overridden by the custom page.