Analytics
4.4K members online now
Understand information in your reports and troubleshoot reporting issues such as self-referrals, (not set) data, and inaccurate information
 
Guide Me
star_border
Reply

Analytics Add-on / ga:sessionDuration

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Good afternoon,

I'm starting using the Analytics Add-on and would like replicate a Goal where the session duration is longer than 10 min.
In order to achieve this I'm choosing the metrics:
ga:sessions
ga:sessionDuration
and I want to add a filter to just have the sessions that are longer than 10 min.
When I obtain the data from ga:sessionDuration it appears as 9535608, how it is calculated? I need this information as well in order to create the filter.

Thanks very much.
Regards

Analytics Add-on / ga:sessionDuration

Follower ✭ ✭ ✭
# 2
Follower ✭ ✭ ✭

hi @Susana

 

It is total time in seconds. it means that unless you do any calculations it will be total time of all sessions within the given date range. 

 

If you want to have it longer than 10mins you will have to divide it by number of sessions (ga:sessions) and by 60

 

it would be something like this:

filter>ga:sessionDuration/ga:sessions/60 

 

Find out more here: https://developers.google.com/analytics/devguides/reporting/core/dimsmets#view=detail&group=session&...

 

Let me know if that helped. 

Seb 

Re: Analytics Add-on / ga:sessionDuration

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Good morning Sebastian,

 

Thanks very much for your quick reply, I have tried your recommendation, however this filter didn't work.On the Google help page the recommended filter is:

 

filters=ga:timeOnPage%3E10

 

Any other ides?

 

Thanks,

 

Susana

Analytics Add-on / ga:sessionDuration

Follower ✭ ✭ ✭
# 4
Follower ✭ ✭ ✭

hi @Susana

 

Too bad it didn't work. Can you share a screenshot? By the way if you are using Spreadsheet API in filters you do ga:sessionDuration>600 (remember it's in seconds) 

 

Another approach: create a segment in GA interface and then use it in your Spreadsheet API. I've tried it and it worked.

1) Once segment is ready go to: https://ga-dev-tools.appspot.com/request-composer/

2)  Select 'Account' , 'Property' and 'View'

3) Select segment you just created - it should reveal ID / segment definition

4) Copy-paste to your spreadsheet API in a "segment" field

5) Run the report 

 

Seb

 

 

 

Re: Analytics Add-on / ga:sessionDuration

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

Capture.JPGconfiguration.JPG

 

 

Hi again,

 

See the screenshots attached of the configuration and error message. The first filter seems to be working as there is no error (ga:sessionDuration>600), but the data does not seems filtered.

 

Anyother way to do it without need to create a segment?

 

Thanks for your help.

Regards,

 

Susana

Analytics Add-on / ga:sessionDuration

Follower ✭ ✭ ☆
# 6
Follower ✭ ✭ ☆

Here's another simple solution.  Try creating an Event for sessionDuration>600 seconds then create a Filter based for that Event only.

Analytics Add-on / ga:sessionDuration

[ Edited ]
Follower ✭ ✭ ✭
# 7
Follower ✭ ✭ ✭

Hi @Susana

Would you mind pasting in your "segment" field following:

sessions::condition::ga:sessionDurationBucket>600

 

and clear your "filter" field - in that case you do not need both

 

It should work fine 

Sebastian

Re: Analytics Add-on / ga:sessionDuration

[ Edited ]
Follower ✭ ✭ ✭
# 8
Follower ✭ ✭ ✭

Screen Shot 2016-11-28 at 13.56.59.png

 

please see my configuration above

 

 

Re: Analytics Add-on / ga:sessionDuration

Visitor ✭ ✭ ✭
# 9
Visitor ✭ ✭ ✭

Hi again,

 

I have tried your new suggestion but it gives me an error as well.

sessionDurationBucket.JPG

Re: Analytics Add-on / ga:sessionDuration

Visitor ✭ ✭ ✭
# 10
Visitor ✭ ✭ ✭

 

sessionDurationBucket2.JPG