• Has anyone had any experience with placing the google analytics tracking code into a wordpress site?

    I’ve tried to place it in the html on a page but google analytics cant seem to track the code 🙁

Viewing 3 replies - 1 through 3 (of 3 total)
  • You place it in your theme’s footer.php just before </body>

    Hi,

    You just need to add the Google analytical code in header or footer file of the blog so it will be executed with all the blog pages..also after adding the code you need to enable logging via these steps:
    – Go to WordPress administration panel -> Options > Google Analytics.

    From there enter your UID and enable logging. Information on how to obtain UID can be found on the options page. Once one has save settings the JS code should be appearing on all the WordPress pages.

    Thanks,

    Shane G.

    Thread Starter spicer

    (@spicer)

    Thanks for the help.

    Sorry where would the options page be on 2.7? Do you mean the theme options page?

    Regards
    Dan

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Google analytics?’ is closed to new replies.