Hello. I had google analytics working great in an ASP forums for a customer. Last December we switched to the new script google provider. From that point the stats are ZERO, BUT google status check reports working .... I have struggled to find the cause but i have failed. If any body could help ? The Forum software is MegaBBS from pd9soft.com and the code i use is the following... Thanks -- Code --- ' google analytics response.write "<script type=""text/javascript"">" response.write "var gaJsHost = ((""https:"" == document.location.protocol) ? ""https://ssl."" : ""http://www."");" response.write "document.write(unescape(""%3Cscript src="'"" + gaJsHost + ""google-analytics.com/ga.js"" type=""text/javascript""%3E%3C/script%3E""));" response.write "</script>" response.write "<script type=""text/javascript"">" response.write "var pageTracker = _gat._getTracker(""UA-xxxxxxxxx-x"");" response.write "pageTracker._initData();" response.write "pageTracker._trackPageview();" response.write "</script>" response.write "</body></html>"
Create a file to fill google analytics code and use the include command add to your file. <!--#include file="googleanalytics.files" -->
there are some issue with this code read more about it: www.google.com/support/googleanalytics/bin/answer.py?answer=75129