Frequently Asked Questions:
Where do I insert my Google Analytics code?
Because a WordPress blog is a dynamic, database-driven site, there’s not a simple place to insert the Google Analytics tracking code. Fortunately, however, some clever people have created free plugins that will insert your Google Analytics code everywhere it needs to be without you ever touching the template files. The plugin I use can be found here, but you can also google “wordpress plugin google analytics.”
If you use the one I linked to above, just extract the folder and upload into your “plugins” folder, inside your “wp-content” folder. NOTE: with that particular plugin, you need to use the “legacy” urchin.js tracking code, not the newer fancier one. In your google analytics control panel there will be an option to copy the urchin.js version or the newer one. Make sure you use the urchin.js one for this plugin.
Once you’ve uploaded the plugin, activate it from within your WP Admin area under the “Plugins” tab. Then, under “Settings” (”Options” if you’re on an older version of WordPress) and you should see a “Google Analytics” link in the submenu. Click on it, and past your code into the box and then click save.
Related Posts: Uploading and Installing a Plugin, Adding Statcounter tracking code to your blog
Questions? Instead of emailing for support, leave a comment below so everyone can benefit from any clarification.
Once I paste the code into the box, I get a message saying it’d deactivating due to fatal error. What am I doing wrong?
Thank you
Shirley » huh… never heard of that before. can you paste the error message in a comment so I can see it?
I just noticed this message along the bottom of :Google Analytics” :
“Warning: Making changes to active plugins is not recommended. If your changes cause a fatal error, the plugin will be automatically deactivated.”
I did something wrong.
Shirley » odd. why don’t you try deactivating, then deleting the plugin off your server and reuploading it. i’m assuming you didn’t edit the code at all, right?
Will do. No editing was done. I copied and pasted as is……..would WP version interfere? I’ll let you know what happens.
do we have to put the google code on every page or just that box you pointed out? im not seeing it coming up in my google analytics page.
thanks.
nevermind. i think i got it.
thanks.
when I paste the code – do I delete the code that there? Becasue there Is a code already adn it seems identical to the one genreated apart form a 1d noumber.
Anyway if I paste under the code that there and hit update its just defalts back to the other code that already there……………. If delete the orignal cade it will update but google checks my status and says its not verified??
Sorry didn’t give you my web addy to check
@Kym: delete the code that is there and paste in yours. then give google 24 hours to find the code, it should be there.
Okay – great thats what I’ve done …I’ll checc back in 24 hrs and let you know
Thanks
Kym
Which is better? Google Analytics or Statcounter?
@Vanessa: my opinion: google analytics. much more powerful.
Hi – not sure if this is an analytics problem, or what.
I changed the date of a post in the blog – to rearrange the order. Now I am getting a ‘404 not found’ error from the web Crawl page on Google Analytics. So, I guess that the original link (and date is part of the blog entry link) is being stored somewhere – but I can’t find it anywhere.
Any ideas of where this is stored, or how I can change it ?
Thanks, Frank
@Frank: i’m not sure about that. that would be a good question to ask on the WordPress support forum: wordpress.org/support
Hi Jared,
Someone told me about an “All in one SEO package.” I went and downlaoded it but now I’m not sure what to do with it…any advise?
Thank you!
@Allison: It’s a plugin. here’s a post i made explaining what those are and how to use them
http://tinyurl.com/5nz84j
I can’t find the box where I am supposed to add the code. I activated the plug in and added the domain name to the analytics and where does the code go? When I go to settings I don’t see google analytics in the submenu. Help, thank you.
@Joanna: did you click on the “settings” tab? it should be a sub-tab of that one.
When I click on plugins I see : Plugins, plugin Editor, Google Analytics and Akismet Config. Is it supposed to be next to one of those.
Under the Google Analytics there isn’t a box where I could enter the code.
Thanks for your help!
i copyed this whole link to the bottom of my page and the whole page shifted and screwed up..what am i doing wrong?
var gaJsHost = ((”https:” == document.location.protocol) ? “https://ssl.” : “http://wwwjuliefraserphotography.com”);
document.write(unescape(”%3Cscript src=’” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
try {
var pageTracker = _gat._getTracker(”UA-6945837-1″);
pageTracker._trackPageview();
} catch(err) {}
I’m also getting this error:
Warning: Cannot modify header information – headers already sent by (output started at /home/juliefra/public_html/blog/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php:539) in /home/juliefra/public_html/blog/wp-includes/pluggable.php on line 850
Привет. Подскажите, как перевести блог с бесплатного хостинга, вот мой блог php
Вроде как wordpress должен легко перемещаться на свежую площадку, хотя у меня все время промахи в базе данных. Я посмотрел там, хотя в php ничего не знаю вообще и привлекать сторонних разработчиков программного обеспечения то ведь не хочется. Имеет возможность подскажите, как неболезненно перенести блог?
Привет. Образовалась проблема – купил я электродрель на магазин ру
А она сломалась у меня в тот ведь день – гарантии никакой не дали. Просто почта пришла с коробкой, а там все на китайском. Написал в торговый центр данный, дали ответ, что обращайтесь в сервис центр, хотя у меня ни документов на руках нет, ничего. Как можно приструнить этот онлайн магазин? Есть ли какие-то компетентные органы, что писать. Куда писать, кому писать. Ошибся, да, надо было в торговом центре нормальном прикупить, но нужной мне модели просто не было, да и подешевле в интернет-магазине. А вот и уже сижу у разбитого корыта. Подскажите, что делать.
Glad I found this tidbit on yahoo when I was surfing the internet. Good STUFF!
Hey Karleen,You got me:)I will thing about it!
seo|vps|hosting|dedicated|server…
[...]» Where do I insert my Google Analytics code? Jared’s ProPhoto Tips[...]…