hi i have just join google analytics and i got my javascript code it said to put it just before the </body> tag would the code still work where i have put it or must it go just before the end body tag <div id="footer"> <p>Copyright © 2008<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA945945934853; urchinTracker(); </script> sitenamr.com.</p> </div> </body> </html>
You must always paste it immediately right before the </body> tag except when in special cases there are codes such as urchinTracker(), utmLinker(), utmSetTrans(), or utmLinkPost() above the </body> tag. If this true, then you must paste the Google Analytics Javascript above the codes. If not, follow the rules to place it before the </body>
bcoz in my case i checked it worked only within body tag , do not embed in head, div, etc it will not work there
ok i have now added it to just before the </body> but it think it was still working where i had it but it seems it works best by the body tag