Log in

View Full Version : how - google analytics code to index.php ??


radarhunter
12-07-2006, 03:01 PM
hi how to add my google analytics code to my index.php file as well as cmps page ??????


cause when i add it there it gets pawned the page gets all mashed up........


<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct="UA-xxxx-x";
urchinTracker();
</script>

this is the code

Zachery
12-07-2006, 03:51 PM
Add it to the footer template.

Itworx4me
12-07-2006, 03:52 PM
Put this this code at the bottom of your footer template:


<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct="UA-xxxx-x";
urchinTracker();
</script>

radarhunter
12-07-2006, 04:09 PM
can we add it to your php file for a permanent effect ???

RedTyger
12-07-2006, 04:21 PM
There's no need and I don't think it's possibly anyway. Just put it in the footer, that is where Google ask you to put it.