Sunday, March 28, 2010

How do you install Google Analytics on Wordpress?

Question: How do you install Google Analytics on Wordpress?

Answer:

One way is to install one of the many Google Analytics plugins and activate it then go to settings for that plugin and give it the ID for the site.
Pros: If you switch themes,  your Google Analytics will still work.
Cons: It takes some time to select and install a plugin since there are so many for GA.

The other option is to go to wp-content/themes/yourthemename/  and paste the code in your footer.php (just don't do it between <?php and ?> )
Pros: This is very fast to do since you just past the code and save the file.
Cons: If you change to another Wordpress theme, you will need to paste the code in its footer.php

No comments:

Post a Comment