Loans - Power Rangers - Loans - Loans - Loans

PDA

View Full Version : Wordpress and Google Analytics


bluemanteam
Jan 25th 2008, 1:51 pm
I was just wondering what wordpress file people add the google analytics code to? Header.php, foot.php, or does it matter?

yogesh sarkar
Jan 25th 2008, 2:03 pm
Once you log into the admin area, go to theme editor and there choose footer template to edit. Place the code in this file, at the bottom.

cdpm
Jan 25th 2008, 2:07 pm
yeah, it depend on the themes..but normally in footer.php..
paste it before the

</body>

WebGeek182
Jan 25th 2008, 2:30 pm
The easiest way is to use the Google Analytics for WordPress (http://www.joostdevalk.nl/wordpress/analytics/) plugin. Super easy.

bluemanteam
Jan 25th 2008, 2:48 pm
The easiest way is to use the Google Analytics for WordPress (http://www.joostdevalk.nl/wordpress/analytics/) plugin. Super easy.

Thanks for the suggestions. I was actually just planning on adding the code to the footer until I read your post.

Other then the additional tagging benefits, is there any other reason to use a plugin for this?

walkere
Jan 25th 2008, 3:06 pm
Other then the additional tagging benefits, is there any other reason to use a plugin for this?

If you change themes, you don't need to remember to add the code again. Not a big deal, but a minor convenience.

- Walkere

Veej
Jan 25th 2008, 4:09 pm
Everyone has covered the reasons pretty well here, but yes, there are advantages and if you'd like more information, check out this link (http://www.bloggertoblogger.com/index.php/topic,19.0.html).

WebGeek182
Jan 25th 2008, 4:22 pm
If you change themes, you don't need to remember to add the code again. Not a big deal, but a minor convenience.

- WalkereExactly what I was going to say.

bluemanteam
Jan 25th 2008, 4:29 pm
Thanks guys, I've just added the code manually for now but may switch to the plugin down the road.