Average Time Spent on Page View | Community
Skip to main content
skatofiabah
Level 5
August 8, 2024
Question

Average Time Spent on Page View

  • August 8, 2024
  • 1 reply
  • 1100 views

Hi All,

 

I was wondering how to properly Calculate Average Time Spent on a Page View? I have a hit segment applied to a specific page. It is also my understanding that page views can increase without a timestamp being applied https://experienceleague.adobe.com/en/docs/analytics/components/metrics/total-seconds-spent

 

Here is my metric:

 

This segment in the metric removes this page view if it was the 1 and only page view in the visit. I'm anxious that in a scenario where a user sees the page 2 times and the 2nd time the user doesn't have an additional hit and closes the browser. To my understanding, the total seconds spent wouldn't increase but the page views would increase, meaning I could get a smaller average inflating the page view denominator without a corresponding total seconds spent to add in the numerator. Is there a way to remove the last page view that doesn't have a subsequent hit or server call as that page so that way each page view for that page has a corresponding total seconds spent to add?

 

Thanks!

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

philschmidt
Level 2
August 21, 2024

Try using "Exclude hits with 'Time Spent on Page - Granular' is greater than or equal to 0'" as the basis for your hit level segment that filters page views. When applied to page views, only page views that have time spent data are included.

In the screenshot below you can see how the "Hits with 'Time Spent on Page - Granular' is greater than or equal to 0'" segment, when applied to page views, does not include page views from bounces or page views that were the last hit in the visit.

Edit: Add "Page (Non-Repeating Instances) exists" to the segment to also exclude reloaded page view counts.

 

skatofiabah
Level 5
August 21, 2024

Hi @philschmidt,

 

How would I then filter it down to get the average time spent on particular sets of pages? For example, getting each page (and url) on dimensions and then have average time spent on that page in columns for metrics? I understand your segments in that time won't exist in a last hit so we can exclude that. But, how do we include the time exists and exclude when the user goes to a different page? An example could be if I enter on Page a and spend 15 seconds, then I refresh and Page A fires against and I'm there 45 seconds, then I need that Page A to show my average time was (15+45)/2 = 30 seconds.

philschmidt
Level 2
August 21, 2024

Add "Page (Non-Repeating Instances) exists" to your segment that filters page views. Reloaded page views will be excluded.