Log in

View Full Version : Quest about adding code.


Dutch_Boy
07-14-2009, 12:46 PM
Hello,

I'm trying to add google Analystics to my site, so i can see which forum is used the most etc.

But before this will work i need to add some code to the pages. But i don't know how to do that.

Is there someone that can explain me how to add this to the pages?

Site: www.iwsgaming.nl

Code:

<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>
try {
var pageTracker = _gat._getTracker("UA-9760374-1");
pageTracker._trackPageview();
} catch(err) {}</script>

Kind regards,

Dutch_Boy.

Marco van Herwaarden
07-14-2009, 01:10 PM
You can add it to a template. For Google Analatycs placing it in the "footer" template is best.

Dutch_Boy
07-14-2009, 04:18 PM
Oké thank you. Testing it right now.

Dutch_Boy
07-15-2009, 10:18 PM
Everthing works fine :) Thank you for helping me!! :)