How-to add Google Analytics tracking code to wordpress

You may add the Google Analytics tracking code to you site either manually or with a plugin. There are many plugins that can help you do this, but I have selected a very simple one, that get the job done simple and sweet.

Adding Google Analytics manually

  1. Login wordpress admin panel
  2. Goto Appearance > Editor (theme editor)
  3. Select the footer.php or index.php
  4. Find the </body> html tag
  5. Copy and page the Google Analytics code before the </body> tag.
  6. Don’t forget to click Update File to save changes.

The only problem with the manual installation is that if you swap wordpress themes you will loose your  Google Analytics tracking. That is why it is better to handle the Google Analytics tracking code within a plugin. The selected plugin is a simple plugin with no-mumbo-jumbo.

Adding Google Analytics with the Header-Footer plugin

  1. Download and install the Header-Footer plugin
  2. Goto Settings > Header-Footer
  3. Cut and paste the google tracking code in the bottom footer textbox.
  4. Enjoy.

If you are looking for a more advanced feature packed plugin that can also handle the above and more, you might want to try HeadSpace2.

Please note that this tip requires wordpress installed on your webhost.

No TweetBacks yet. (Be the first to Tweet this post)
Tweet This Tweet This Post!


One Response to “How-to add Google Analytics tracking code to wordpress”

  1. I don’t like using plugin for google analytics because it make my site slower


Post a Comment


Aweber
AnHosting
Free wordpress blog installation service
Dreamhost


  • Links

Custom Content