Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a site with various pages, like:

/about/history
/about/team
/contact/email-us
/contact

I want to figure out how much time people are spending on the entire /about section, and how much on the /contact section.

If I run a query on the Google Analytics API and set the dimension to ga:pagePathLevel1 and the metric to ga:avgTimeOnPage, I get results like this:

{ pagePathLevel1: /about, avgTimeOnPage: 28 },
{ pagePathLevel1: /contact, avgTimeOnPage: 10 }

This looks roughly like what I want, but I'm not sure how to intepret it:

  • Is the value of avgTimeOnPage the average time spent by any user on all pages that match that path?
  • Or is it the average time spent by any user on any single page that matches that path?

I'm looking for the average time spent across all pages matching that path, but the time estimates look shorter than I'd expect.

share|improve this question
    
Is /about a page? –  eyoung100 Jun 5 at 20:12
    
Sorry for being unclear, I've updated the question to make it clearer. –  flossfan Jun 6 at 9:19
    
Also keep in mind that analytics sees "zero" as the time on page for the last page in a session. Nothing is sent to analytics when a visitor leaves your site. Because of this, your time on page is likely to appear much shorter than you expect for common exit pages. –  Stephen Ostermiller Jun 6 at 9:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.