Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Analytics - Visit duration 0 sec

I am using Google Web Analytics Online Tool to monitor visits on my site. What bugs me is that often I see that records contain the folloowing entries:

Page Visits: 1.00 Average Visit Duration: 00:00:00 Bounce Rate: 100%

What does that mean? If the visitor comes to my site it should stay at least couple of seconds until he leaves? Could that mean that something is wrong with accessing my site (I had similar problems before, but I am convinced I fixed them since I am not getting any errors when I try to access my site from different computers.)

like image 712
Dantes Avatar asked Nov 13 '12 11:11

Dantes


People also ask

Why session duration is 0 in Google Analytics?

It is calculated as the timestamp on the last activity in a session minus timestamp on the first activity. If a user does not navigate to any other page or does not perform any other activity on your site, google analytics will not be able to calculate the avg. s ession duration and it will be noted as zero.

What does a session duration of 0 mean?

If you see Average session duration or Average time spent on page to be 0 (Zero), it doesn't mean users have not spent any time on your site. It means your users have not visited more than a single url (page) on your website.

Why is the time on page 0?

Average Time on Page Formula The time-on-page for a web page is calculated as the time difference between the point when a person lands on the page and when they move on to the next one. If the person exits the website without going to any other page, then the time-on-page is zero (i.e. a “bounce”).

How does Google Analytics calculate visit duration?

Google Analytics calculates average session duration by dividing the total duration of all sessions (in seconds) during a specified time frame by the total number of sessions during that same time frame.


1 Answers

When a visitor comes to your page google analytics sets a cookie where a timestamp is stored. When the user visits a second page in your site Google compares the stored timestamp to the actual time and calculates visits duration from the difference between the two. If all your visitors have bounced there is no second data point to compare the stored value to and google is unable to compute a duration.

A common workaround is to set a javascript timeout and trigger an event after ten seconds or so (with the "interaction" flag in the event set to true, see Google Analytics event tracking docs for details). The assumption is that somebody who looks for more than ten seconds at you page is not actually a bounce (I think that since "bounce rate" has so hugely negative connotations people try to avoid high bounce rates even at the price of introducing bad data; you should realize that "bounce rate" simply means that there are not enough data points to say anything meaningful about those particular visitors).

Personally I do not like that approach because it means to redefine inaction of a visitor as action. A better idea (IMO) is to implement a meaningful interaction point - like a "read more" link that loads content via ajax or something like it - and track that via event tracking or virtual page view.

Event tracking guide: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide

Short Update: With Universal Analytics the technical details have changed (i.e. there are no longer cookies with timestamps, all information is processed on the GA servers). So the first paragraph is no longer up to date, however the rest of the answer is still valid.

like image 127
Eike Pierstorff Avatar answered Oct 21 '22 16:10

Eike Pierstorff