> For the complete documentation index, see [llms.txt](https://docs.adlibertas.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.adlibertas.com/the-platform/user-level-audience-reporting/advanced-reporting-methods/adding-user-time-to-your-reports.md).

# Adding user time to your reports

Firebase has a helpful feature where every event they fire, they’ll include a parameter in the event that will tell you how much time has elapsed since the last event. This parameter is called **engagement\_time\_msec.** When these parameters are added up, this can tell you the total time a user spends in the app. (Details on this event are available[ <mark style="color:blue;">in this article</mark>](https://firebase.blog/posts/2018/12/new-changes-sessions-user-engagement))

I walk through this in a video and with a couple of screenshots.

{% embed url="<https://www.youtube.com/watch?ab_channel=AdamLandis&v=dUXgnpYKMZQ>" %}
1.49s video walk-through of adding user-time to your app
{% endembed %}

When creating a report, under Custom Metrics, you can add “User’s Engagement Time in App” that will add up all the “elapsed time” that’s recorded in engagement\_time\_msec.

![Add the conversion from milliseconds of your choice when building a report](https://336314087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaO8orL32xNzJW4MhnNef%2Fuploads%2FONmRHyvTF79YdBInirlT%2FScreen%20Shot%202022-12-28%20at%201.12.31%20PM.png?alt=media\&token=e229c560-7212-45c4-8155-9084f5a4c829)

Then when viewing the report, you’ll see a sum & count feature added. For the total time, you’ll want to view the sum! (The count is actually the number of events, not helpful in this context!)

![Here you can see the average user time (in minutes) for an audience. Cumulative, and total time will also be included.](https://336314087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaO8orL32xNzJW4MhnNef%2Fuploads%2FH2qiZj3d4Vv1r40ATBoy%2FScreen%20Shot%202022-12-28%20at%201.15.31%20PM.png?alt=media\&token=9101a2b3-ad1c-47bc-9982-28ee4add5782)
