Skip to main content
Solved

How to track total time spent by user on a particular page?

  • March 23, 2021
  • 1 reply
  • 9473 views

Hi All, 

Needed to track total time spent by a user on a particular page on my web app. Is it possible to track page views and within page views is it specifying the time spent by a user on a page. 

Is there any option to start and stop tracking pageview on a particular page?

Urgent help needed.

Regards,

Ashwin

Best answer by Saish Redkar

Hi @ashwin.araokar ,
Afaik, there isn’t a native way of doing that in Amplitude.

@daniel.balan has written an excellent post on how you can instrument a ”duration”  property to tackle this use case. Here is the link :

 “To track duration, you would need to capture the timestamp of a Start Event and timestamp of an End Event, calculate the difference between the two timestamps, and then pass in the duration as an event property for the End Event.

Hope this helps!

View original
Did this topic help you find an answer to your question?

1 reply

Saish Redkar
Expert
Forum|alt.badge.img+10
  • Expert
  • 1378 replies
  • Answer
  • March 23, 2021

Hi @ashwin.araokar ,
Afaik, there isn’t a native way of doing that in Amplitude.

@daniel.balan has written an excellent post on how you can instrument a ”duration”  property to tackle this use case. Here is the link :

 “To track duration, you would need to capture the timestamp of a Start Event and timestamp of an End Event, calculate the difference between the two timestamps, and then pass in the duration as an event property for the End Event.

Hope this helps!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings