# Determine duration of visit to each view

**URL:** <https://discourse.aurelia.io/t/determine-duration-of-visit-to-each-view/3228>\
**Category:** Help Requests\
**Created:** [February 12, 2020, 7:30am UTC](https://discourse.aurelia.io/t/determine-duration-of-visit-to-each-view/3228 "2020-02-12T07:30:02Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![bigopon](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/bigopon/32/18_2.png) [@bigopon](https://discourse.aurelia.io/u/bigopon)\
**Post date:** [February 12, 2020, 11:45am UTC](https://discourse.aurelia.io/t/determine-duration-of-visit-to-each-view/3228/4 "2020-02-12T11:45:46Z")

</div>

I see. I think you can use the events as seen in the enum here [https://github.com/aurelia/router/blob/master/src/router-event.ts](https://github.com/aurelia/router/blob/master/src/router-event.ts) . If you use an older version of the router, you can usenthe value directly, or copy paste that enum and listen to those event on the event aggregator.

---

_[View the full topic](https://discourse.aurelia.io/t/determine-duration-of-visit-to-each-view/3228)._
