Welcome to WebmasterWorld Guest from

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

google analytics error counter



6:40 am on Jul 27, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Ok first of all, i have the "new" code, the one that is put just before the </head> tag

<script type='text/javascript'>

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-#*$!#*$!xx-x']);

(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);


The application that uses this code has 5 pages.
I have put this code in 3 of them (the first 2 and the last one).
The last page send me an email about what the visitor wants from our site(a form filled by him actually).
In the last 5 days i received 5 such emails/requests.
But google analytics only show 1 visit in that page.

Any reason as to why? I dont know how accurate google is for the first two pages, but i know for sure how much trafic/vistis my exit/thank you/email page has.
So, what's wrong and what should i check?
Or it's just a google glitch?


11:29 pm on Jul 27, 2011 (gmt 0)

Is the confirmation page an actual page (have a unique url) or ajax/json?


5:54 am on Jul 28, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

it is a real page


5:59 am on Jul 28, 2011 (gmt 0)

5+ Year Member

Is it possible that all 5 emails were sent by one person by using the back button(if redirects to a thank you page)?

I put it before </body> tag...


6:53 am on Jul 28, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

nope - all email requests were different.

i cant put GA code above </body>. Google instructs me to put it just before </head>. Its the new asynchronous code they provide.

Also, i cant put code in all pages - the two pages i have not put code in are redirects to a bank gateway and paypal gateway.

Some more notes:
- i am pretty sure client's JavaScript is turned on (i forbit access to this part of site without javascript enabled browsers)
- i use no cashing (either from template, php or htaccess), no sessions and no cookies in the last page. All data are gathered from database based on an encoded id in the url.
- no other JavaScripts in last page.

So, what i have left to check is:
- browser/network error
- user closed the window/page before page is fully loaded and before GA loads in full
- some GA bug
- user has blocked GA (although the possibility for this to have happened in 4/5 clients is close to null).

Any other thoughts?

Featured Threads

Hot Threads This Week

Hot Threads This Month