Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a problem in Google Analytics and I don't know what is missing in it. I added the script file to my WordPress website header like this one:

<script type="text/javascript">

 var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-Y']);
_gaq.push(['_trackPageview']);

 (function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async =   true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();

</script>

When I opened the Google Analytics I saw Tracking Installed but when I open the dashboard to see the reports and my information everything shows 0 people visited this site, 0 visits, everything is zero and I don't know why ?

share|improve this question

migrated from wordpress.stackexchange.com Mar 5 '13 at 13:01

This question came from our site for WordPress developers and administrators.

    
of course i did that i wrote in my question that the code is just like that not this one and it said track installed that is not the problem –  sarah Mar 5 '13 at 11:47
    
Sarah, please use upper- lowercase letters when writing questions. Questions are for later readers as well and should be easy to read. Thank you. –  kaiser Mar 5 '13 at 11:53
    
Google Analytics is not real-time tracking service, so if it shows tracking installed you have to wait several hours to see any changes. –  Max Yudin Mar 5 '13 at 11:58
    
its working thaks everyone you were right it works after 24 hour –  sarah Mar 6 '13 at 6:05

3 Answers 3

up vote 1 down vote accepted

Default Google Analytics reports show historical data compiled over the course of the last 24-48 hours (generally, you will not see anything reported with standard reports until at least 24 hours have passed; the greater and the more geographically-dispersed your traffic is, the longer it can take to compile all traffic data).

Switch to Real-Time Reports to test in real-time.

share|improve this answer

sarah, check the time frame (at the top of your GA) for which dates you are view your report. By default, GA does not include the current day ... you need to change the same.

share|improve this answer

If Google Analytics mentionned that your tracking has been installed, you can be assured that you did it right. You generally have to wait (the next day if I'm not mistaken) before you get tracking information.

share|improve this answer
    
thanks rrikesh i will wait and see –  sarah Mar 5 '13 at 12:04
    
you may check right now if it works, just go to Real-time Tracking and see what happens when you surf your website in another tab/window. –  DKOATED Mar 5 '13 at 13:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.