MicrostockGroup Sponsors

Author Topic: Google Analytics in a Wordpress blog  (Read 3970 times)

0 Members and 1 Guest are viewing this topic.

« on: January 21, 2010, 18:12 »
I wanted to add Google Anaylitics to my blog, which uses Wordpress (not the free Wordpress.com site, my own site using WP code).

I saw many plugins for this purpose, does anyone have a suggestion?

« Reply #1 on: January 21, 2010, 18:19 »
No plugin needed, just put the GA code into the <head> block of your template in header.php via the theme editor in your admin page.

« Reply #2 on: January 21, 2010, 18:32 »
Will it detect each post in my blog, so I can see which ones are more read?

« Reply #3 on: January 21, 2010, 18:49 »
Yes, because every page is built from the same template when called, and the code reports the page URL back to Google. If you hand build any static pages outside WP they would need the code as well.

« Reply #4 on: January 21, 2010, 22:25 »
I use this one on my blog and on my clients' blogs with great success.


Although george is correct, one nice thing about using the plugin is is that when either the template, wp files or plugin are upgraded you can upgrade all your files automatically.

I wouldnt do it any other way.

« Reply #5 on: January 22, 2010, 11:51 »
Thanks, Artmyth.

I am the only one who would update the template, since I have actually translated it into Portuguese (still not finished...).  In this case, would it make any difference using the plugin or the direct method suggested by George?

« Reply #6 on: January 22, 2010, 12:05 »
Well, the main difference would be convienience, using the plugin it is all done automatically, and updates can be acheived in a one click 'update this plugin' inserting the code in the right spot, and updating the actual code to be inserted. 

Secondly you gain the benefit of additional rich features as listed on the site (http://yoast.com/wordpress/google-analytics/) about customizing the script to add search engines, track downloads, and trackiing image search keywords.

so his script is a bit more feature rich and definately easier to use than coding your own.


Related Topics

  Subject / Started by Replies Last post
2 Replies
Last post June 16, 2009, 15:36
by zymmetricaldotcom
6 Replies
Last post July 08, 2010, 18:33
by cidepix
7 Replies
Last post August 12, 2010, 07:58
by Artemis
2 Replies
Last post January 30, 2011, 12:55
by madelaide
6 Replies
Last post December 07, 2011, 20:12
by madelaide


Mega Bundle of 5,900+ Professional Lightroom Presets

Microstock Poll Results


3100 Posing Cards Bundle