Account Options

  1. Sign in
Google Groups Home
« Groups Home
Discussions > GA Data Export API > How does GA.js determine time on site?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
John H.  
View profile  
 More options Dec 14 2009, 12:56 pm
From: "John H." <john.ham...@gmail.com>
Date: Mon, 14 Dec 2009 09:56:36 -0800 (PST)
Local: Mon, Dec 14 2009 12:56 pm
Subject: How does GA.js determine time on site?
Ok, Somehow I am missing it here.
I understand that GA.js records 2 cookies __utmb & __utmc with one
cookie ending when user leaves site. The question I am confused is how
is the time the person leaves the site captured and returned to
google.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
guytom  
View profile  
 More options Dec 15 2009, 4:38 pm
From: guytom <guy.to...@gmail.com>
Date: Tue, 15 Dec 2009 13:38:58 -0800 (PST)
Local: Tues, Dec 15 2009 4:38 pm
Subject: Re: How does GA.js determine time on site?
+1 vote for a good explanation on this. If someone does pick this
glove up, please refer also to application reporting only events.

Thanks

On Dec 14, 7:56 pm, John H. wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Google employee  
View profile  
 More options Dec 15 2009, 5:54 pm
From: Nick <api.ni...@google.com>
Date: Tue, 15 Dec 2009 14:54:42 -0800 (PST)
Local: Tues, Dec 15 2009 5:54 pm
Subject: Re: How does GA.js determine time on site?
Hi,

Happy to help clarify.

Google Analytics collects time stamps for each hit (server request)
generated by the ga.js. Each hit has a certain type and only:
pageviews, events, transactions and items are included in the
ga:timeOnSite calculation.

ga:TimeOnSite is visit based where a visit increments:
- when the browser closes
- if > 30 mins has elapsed between time stamps
- the end of the day

In ga.js, __utmb is a cookie set to expire for 30 minutes in the
future. __utmc is a session cookie which expires when the browser
closes. Each tracking request checks both cookies and if either isn't
present the visit is incremented. Ending the session at the end of the
day happens when your data is processed and is defined by midnight of
the time configured for an individual profile.

To arrive at ga:timeOnSite, GA sums the deltas between each timestamp
(for the hit types above) in a visit. The main edge cases is the last
hit in a session, where we can't compute the delta. In that case the
quantum of time between the last hit and the session end is not added
to the calculation.

Hope that clarifies the question :)
-Nick

On Dec 15, 1:38 pm, guytom wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brandt Dainow  
View profile  
 More options Dec 16 2009, 6:01 am
From: Brandt Dainow <brandt.dai...@gmail.com>
Date: Wed, 16 Dec 2009 03:01:21 -0800 (PST)
Local: Wed, Dec 16 2009 6:01 am
Subject: Re: How does GA.js determine time on site?
Hi - can you add further qualification to the "end of the day" - are
you saying that if someone arrives at 23:55, then requests another
page at 00:15, this will be recorded as two visits?  If so, what
constitutes "end of the day" - is it GMT time, local time at browser,
local time at web server, or local time at GA server?  And in all
cases, how is daylight saving handled?
-Brandt

On Dec 15, 10:54 pm, Nick wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Google employee  
View profile  
 More options Dec 16 2009, 9:19 pm
From: Nick <api.ni...@google.com>
Date: Wed, 16 Dec 2009 18:19:49 -0800 (PST)
Local: Wed, Dec 16 2009 9:19 pm
Subject: Re: How does GA.js determine time on site?
Hey Brandt,

You are correct, if somebody arrives at 23:55, then requests another
page at 00:15, Google Analytics will split this into 2 visits.

The time is based on the timezone configured in the Google Analytics
account management interface. Default is Pacific. Also daylight
savings is applied based on the time zone configured.

-Nick

On Dec 16, 3:01 am, Brandt Dainow wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »