Adding analytics code in your wordpress site

March 29, 2010

Tracking the number of visitors in a website is necessary for all bloggers and website owners, and the best service that does this is doubtlessly Google Analytics.

While there are different plugins that can help you insert the analytics code in your website, the process is actually very simple and can be done manually very easily. To insert the code, open your footer.php file of your theme, and insert the analytics code provided by google just before the </body> tag.

This way you can track the visitors in all the pages of your website.


  1. Nick Laurie says:

    Many thanks

    Just added that + have set up Google Analytics to send me a weekly report.

    Good stuff!

  2. TCWriter says:

    Is there any reason you wouldn’t use a plug-in for this process – say you evenrtually upgraded your theme?

    • Edy says:

      You could use a plugin, but why use plugins for simple things? More plugins make your site more insecure, heavier, increase the possibility of conflicts etc.

  3. David says:

    How can I disable the accordian drop down function? Or how can I adjust the height of how much it slides down?


Leave a Reply

Your email address will not be published. Required fields are marked *



Get notified of new theme releases.

lifetime package

Get all our current and future themes with a one time payment.

View Details

Seasonal sale! Use code 'discount20' to get 20% discount on all products including our Lifetime Package.
Summer is here!! Use code 'summer30' to get 30% off all our themes including the Lifetime Package.