homepage Welcome to WebmasterWorld Guest from 54.242.231.109
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

    
google analytics error counter
omoutop




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

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']);
_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>


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?

 

still




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

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

omoutop




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

it is a real page

matrix_jan




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

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...

omoutop




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

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?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved