# Can I calculate the time of staying of a user on a page?

**URL:** <https://community.dynatrace.com/t/can-i-calculate-the-time-of-staying-of-a-user-on-a-page/19557>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic\
**Created:** [June 11, 2020, 12:56pm UTC](https://community.dynatrace.com/t/can-i-calculate-the-time-of-staying-of-a-user-on-a-page/19557 "2020-06-11T12:56:56Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![y\_buccellato](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/y_buccellato/32/160_2.png) [@y\_buccellato](https://community.dynatrace.com/u/y_buccellato)\
**Post date:** [June 11, 2020, 12:56pm UTC](https://community.dynatrace.com/t/can-i-calculate-the-time-of-staying-of-a-user-on-a-page/19557/1 "2020-06-11T12:56:56Z")

</div>

Hello dear colleagues,

I was wondering if I can see, from a user perspective (with Injection RUM enable), how much time is spent on a page? (Not from a performance point of view [Ex. visually complete])

Thank you

---

<div class="post-metadata">

**Author:** ![ari\_polavarapu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ari_polavarapu/32/9893_2.png) [@ari\_polavarapu](https://community.dynatrace.com/u/ari_polavarapu)\
**Post date:** [June 11, 2020, 1:31pm UTC](https://community.dynatrace.com/t/can-i-calculate-the-time-of-staying-of-a-user-on-a-page/19557/2 "2020-06-11T13:31:52Z")

</div>

If you look at any specific user session, it tells you the particular time the user triggered an action.

 ![25268-actiontimes.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/aa9fbee9d425bcabb2c5945f1b252ce1cc727174.png)

Does this help?

---

<div class="post-metadata">

**Author:** ![y\_buccellato](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/y_buccellato/32/160_2.png) [@y\_buccellato](https://community.dynatrace.com/u/y_buccellato)\
**Post date:** [June 11, 2020, 1:52pm UTC](https://community.dynatrace.com/t/can-i-calculate-the-time-of-staying-of-a-user-on-a-page/19557/3 "2020-06-11T13:52:14Z")

</div>

Eh, I knew that 🙂

I will be more specific, does an USQL exist for having such detail?

I have tried but without success

---

<div class="post-metadata">

**Author:** ![ari\_polavarapu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ari_polavarapu/32/9893_2.png) [@ari\_polavarapu](https://community.dynatrace.com/u/ari_polavarapu)\
**Post date:** [June 11, 2020, 2:14pm UTC](https://community.dynatrace.com/t/can-i-calculate-the-time-of-staying-of-a-user-on-a-page/19557/4 "2020-06-11T14:14:16Z")

</div>

Ahh I see. You do have metrics for useraction.startime and useraction.endtime which you could potentially use but I’m afraid it may not be as straightforward as you’d ideally want.

---

<div class="post-metadata">

**Author:** ![y\_buccellato](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/y_buccellato/32/160_2.png) [@y\_buccellato](https://community.dynatrace.com/u/y_buccellato)\
**Post date:** [June 12, 2020, 7:20am UTC](https://community.dynatrace.com/t/can-i-calculate-the-time-of-staying-of-a-user-on-a-page/19557/5 "2020-06-12T07:20:42Z")

</div>

My best guess then is: there is a way to export user session and to make more elaborate analysis with a third party integration

I will walk this road to see what I discover

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [June 12, 2020, 12:23pm UTC](https://community.dynatrace.com/t/can-i-calculate-the-time-of-staying-of-a-user-on-a-page/19557/6 "2020-06-12T12:23:06Z")

</div>

You could make a conversion goal or a custom property that states if a user is on page “x” for “x” amount of time mark it.

So then you could see that User Chris, was on google search page for 15 mins, on a certain day… etc..

You might not be able to get an exact number like 26 mins on that page/domain but you can say for sure that it was at least what you set it as.

Just an idea.

---

<div class="post-metadata">

**Author:** ![ari\_polavarapu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ari_polavarapu/32/9893_2.png) [@ari\_polavarapu](https://community.dynatrace.com/u/ari_polavarapu)\
**Post date:** [June 12, 2020, 12:31pm UTC](https://community.dynatrace.com/t/can-i-calculate-the-time-of-staying-of-a-user-on-a-page/19557/7 "2020-06-12T12:31:50Z")

</div>

I’m not sure if that would work. You can only do ‘time’ based conversion goals for the entire session and not individual user actions.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [June 12, 2020, 12:46pm UTC](https://community.dynatrace.com/t/can-i-calculate-the-time-of-staying-of-a-user-on-a-page/19557/8 "2020-06-12T12:46:36Z")

</div>

I dont think the user is looking to get the total at an action level, rather on the page that the user is on and the total duration. im not 100% sure if you can define the goal that way, you might need to toss in some request attributes to use and make a few conversion goals. Incorporating the attribute would give you more power and granularity in the reporting aspect.

---

<div class="post-metadata">

**Author:** ![y\_buccellato](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/y_buccellato/32/160_2.png) [@y\_buccellato](https://community.dynatrace.com/u/y_buccellato)\
**Post date:** [June 12, 2020, 2:25pm UTC](https://community.dynatrace.com/t/can-i-calculate-the-time-of-staying-of-a-user-on-a-page/19557/9 "2020-06-12T14:25:37Z")

</div>

I’m taking my time, but I’m looking at this right now:

[What is digital experience monitoring?](https://www.dynatrace.com/news/blog/export-dynatrace-user-session-data-use-3rd-party-systems/#:~:text=Go%20to%20Integration%20%3E%20User%20session,%2Fimport%2FDynatrace%2FuserSessions%20).

---

<div class="post-metadata">

**Author:** ![runatyr](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/runatyr/32/11396_2.png) [@runatyr](https://community.dynatrace.com/u/runatyr)\
**Post date:** [December 1, 2020, 2:11pm UTC](https://community.dynatrace.com/t/can-i-calculate-the-time-of-staying-of-a-user-on-a-page/19557/10 "2020-12-01T14:11:03Z")

</div>

I’m running into the same question Yaan asked back in June. Was a solution found?

---

<div class="post-metadata">

**Author:** ![y\_buccellato](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/y_buccellato/32/160_2.png) [@y\_buccellato](https://community.dynatrace.com/u/y_buccellato)\
**Post date:** [December 3, 2020, 3:16pm UTC](https://community.dynatrace.com/t/can-i-calculate-the-time-of-staying-of-a-user-on-a-page/19557/11 "2020-12-03T15:16:30Z")

</div>

Hi, in the end the direct answer is no but the more elaborate answer is that you could do it if you apply a logic on the data exported on another engine (Dynatrace has the elasticsearch solution on the go in their doc)

---

<div class="post-metadata">

**Author:** ![khoros\_anonymous](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@khoros\_anonymous](https://community.dynatrace.com/u/khoros_anonymous)\
**Post date:** [December 3, 2020, 3:22pm UTC](https://community.dynatrace.com/t/can-i-calculate-the-time-of-staying-of-a-user-on-a-page/19557/12 "2020-12-03T15:22:39Z")

</div>

You guys could try the [PowerUp Chrome Extension](https://github.com/LucasHocker/DynatraceDashboardPowerups), it allows you to do basic math in dashboards using predefined metrics. is not the best solution, not support officially by DT. But is something.
