Just paste the Analytics code in your template’s footer.php.
So it works similar to WP but just that you cannot do it through Editor in WP, rather do it directly in the files on the server, correct? If I have GA code on my site already, will it help as the forum is just an extension of the domain? Or not, as it is a different page altogether?
Thanks.
So it works similar to WP but just that you cannot do it through Editor in WP, rather do it directly in the files on the server, correct?
Correct. There’s no theme editor built in to BB at this time, so you have to edit the template file.
And you can use the same GA code from WP to BB without changing anything, but as it’s a different page, you have to edit the bbPress and WordPress templates separately.
I think you can track this seperataly with two codes.
@Ed
That’s totally upto you!
Use the same code which is in WP to track the whole site as one or a different code to track the forum separately.
So paste the same code from WP just above the </head> tag?
Thanks.
In general, javascripts like that should go at the end of the page, not in the head. No reason to load that first.
http://analytics.blogspot.com/2009/03/back-to-basics-install-your-tracking.html#oemp
Put it before the </body> tag in footer.php
Put it before the </body>
Thanks. Oops I meant </body> in the footer.php file.