Skip to:
Content
Pages
Categories
Search
Top
Bottom

Google Analytics

  • @invtrdr

    Member

    Is it possible to add Google Analytics code to a bbPress forum? Did not see Editor under Appearance.

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • @chrishajer

    Participant

    Just paste the Analytics code in your template’s footer.php.

    @invtrdr

    Member

    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.

    @ipstenu

    Moderator

    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.

    @mba-studium

    Member

    I think you can track this seperataly with two codes.

    @ashfame

    Participant

    @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.

    @invtrdr

    Member

    So paste the same code from WP just above the </head> tag?

    Thanks.

    @chrishajer

    Participant

    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

    @cuikai

    Member

    Put it before the </body>

    @invtrdr

    Member

    Thanks. Oops I meant </body> in the footer.php file.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Skip to toolbar