MicrostockGroup
Microstock Photography Forum - General => Software => Software - General => Topic started by: madelaide 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?
-
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.
-
Will it detect each post in my blog, so I can see which ones are more read?
-
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.
-
I use this one on my blog and on my clients' blogs with great success.
http://yoast.com/wordpress/google-analytics/ (http://yoast.com/wordpress/google-analytics/)
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.
-
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?
-
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/ (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.