PDA

View Full Version : Trying to get Wordpress Analytics to work



robert.cfi
10-20-2009, 08:56 PM
Hi, I have loaded a couple of Analytic plugins for my wordpress

One - Ultimate Google analytics
Two - the plugin that adds blog stats under the dashboard

Neither are giving any data and I know I have people going to the pages - I even had a comment added and have no data on any of the plugin analytics

Should i just add my Google analytic .JS code to the pages or try and use these plugins?

robert.cfi
10-20-2009, 08:56 PM
btw im on 2.8.4

morestar
10-21-2009, 04:20 PM
I would add the code yourself. I think the plugin is for people that aren't too familiar with coding. If you are then do it yourself...IMO.

WebFadds
10-21-2009, 04:20 PM
Hi -

We usually like to add the Analytics code directly into the theme template in the footer file. That way you know it's in proper position, and you have one less plugin to fuss about. You should then check in Analytics to see if it reports "receiving data">

Scott -
WebFadds - *Optimize *Connect *Convert

mp3r4
10-21-2009, 04:22 PM
Can you see stats in your GA account? When did you install the tracking code/plugin? GA doesn't show stats in real time.

kylegetson
10-21-2009, 04:26 PM
all wordpress plugins are loaded on every page load (both front end and back end). if you know enough to put the code in your footer template file, I would say thats alot less overhead.

robert.cfi
10-21-2009, 04:38 PM
you guys are great!

Im tracking data! Thanks so much!

kettlewell
10-21-2009, 04:47 PM
Should i just add my Google analytic .JS code to the pages or try and use these plugins?

I would install the GA code directly in the footer. Some themes have more than one footer, so make sure to find all the </body> tags and insert it just above there.

The plugins don't seem to always get it right, and from a performance perspective, you gain a slight advantage by not using a plugin and inserting the JS code in the footer anyhow.

You can go into your Google Analytics and click the edit button for the domain you are working on. From there, click the 'check status' link on the page.

Hope that helps you out.

Matt

zbikenut
10-21-2009, 06:54 PM
This was a huge help to me. I forget to add the code as I am building pages and it becomes totally incomplete information. I will add my Analytics right before the /body code. really coool thanks

morestar
10-21-2009, 07:00 PM
I don't know why I've always been adding the code to the end of my documents, even after the </html>. Maybe it's because I read somewhere that the page should load before the code is executed.

morestar
10-21-2009, 07:02 PM
Oh I found the exact instructions from the Analytics team is "Copy the following code block into every webpage you want to track immediately before the </body> tag."

gene02
10-21-2009, 10:48 PM
The reason to ad code at theend of the page is so that if the Analytic s code doesn't execute properly the page will still load. I have seen google analytics hold the page from not loading before.

weegillis
10-22-2009, 04:15 PM
I don't know why I've always been adding the code to the end of my documents, even after the </html>. Maybe it's because I read somewhere that the page should load before the code is executed.

Note: The SCRIPT tag is still HTML, and should occur within the html element. If output is to the screen, then it needs to be in the body. If it's just pushing stuff around in memory, inside the html is fine, AFAIK (but probably invalid).

morestar
10-22-2009, 05:04 PM
Note: The SCRIPT tag is still HTML, and should occur within the html element. If output is to the screen, then it needs to be in the body. If it's just pushing stuff around in memory, inside the html is fine, AFAIK (but probably invalid).


yes yes i knew that...it's been a few weeks since i've added that script to any pages but i did know it has to be just before </body> tag...I miss-read a poster above, when he said he's going to paste it where he said he was going to paste it, i had read <body> not </body> and for some reason i said paste it after the </html> duh!

:confused: