View Single Post
  #3 (permalink)  
Old 09-23-09, 06:23 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
End the PHP content just before the </body> tag, then past the javascript in just prior to the </html> tag.

PHP Code:

echo '</div></div></div>'?>

</body>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.<acronym title="JavaScript"><acronym title="JavaScript">js</acronym></acronym>' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-10706039-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</html> 
Reply With Quote