Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track duration in app #30

Closed
harrowmykel opened this issue Oct 26, 2022 · 4 comments
Closed

Track duration in app #30

harrowmykel opened this issue Oct 26, 2022 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@harrowmykel
Copy link

Hello, thanks for building this great plugin.
I wanted to ask if it is possible to track how long the user spent in the app or on a particular screen?
Are there plans to implement this?

Thanks again.

@TesteurManiak
Copy link
Member

Matomo already support this out of the box, by sending events it will automatically calculate the time spend on a screen.

@harrowmykel
Copy link
Author

harrowmykel commented Oct 26, 2022 via email

@MeixDev MeixDev added the documentation Improvements or additions to documentation label Oct 26, 2022
@MeixDev
Copy link
Member

MeixDev commented Oct 26, 2022

It's all part of the official Matomo documentation.

"By default, Matomo will accurately track the time spent on all your pages, except the last page view of the visit, as Matomo counts the “Time spent on page” as 0 seconds by default."

Source: https://matomo.org/faq/how-to/faq_21824/

The knowledge database and the API reference of Matomo will usually answer most of your questions.

@MeixDev MeixDev closed this as completed Oct 26, 2022
@harrowmykel
Copy link
Author

Thanks a lot for the response. Just for other people looking for info.

You have to use the Mixin to track the app use duration

use TraceableClientMixin or TraceableWidget

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants