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

Conflicting informations about Visit duration #19533

Closed
utrautmann opened this issue Jul 14, 2022 · 3 comments
Closed

Conflicting informations about Visit duration #19533

utrautmann opened this issue Jul 14, 2022 · 3 comments
Labels
c: Documentation Improvements to in-app product help messages, or to the Matomo knowledge base. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Milestone

Comments

@utrautmann
Copy link

utrautmann commented Jul 14, 2022

My question relates to visitors that have only visited one page and taken no further action and where no heartbeattimer is used.

Here https://matomo.org/faq/how-to/faq_21824/ is written:
When your visitor views only one page in the website, the “Visit” duration will be set to a default of 10 seconds

and here https://matomo.org/faq/how-to/faq_21158/
when the visitor views only one page view, the “Time on Page” will be 0 seconds and the “Visit duration” will be 10 seconds.

and here is written:
https://developer.matomo.org/guides/tracking-javascript-guide#accurately-measure-the-time-spent-on-each-page
when the visitor views only one page view, the "Visit duration" will be 0 second.

It seems to me that the third statement is correct (0 second).
Otherwise it would not be possible for such low values to appear here.
grafik
grafik

@Findus23 Findus23 added the c: Documentation Improvements to in-app product help messages, or to the Matomo knowledge base. label Jul 14, 2022
@sgiehl
Copy link
Member

sgiehl commented Jul 15, 2022

I think we might actually have changed that behavior somewhen in the past. But can't remember when or why. Maybe with introducing the HeatBeat 🤔 @tsteur can you remember?
But I think when not using HeatBeat 0s should be default.

@tsteur
Copy link
Member

tsteur commented Jul 18, 2022

I don't remember but looking at the code I can see there is a config default_time_one_page_visit that is set to 0s by default. So as part of this issue we should correct the wrong documentation.

@sgiehl
Copy link
Member

sgiehl commented Jul 18, 2022

Seems that had been changed back in 2010. I have updated the mentioned pages above and also mentioned that changing default_time_one_page_visit can be used to set another default visit duration

@sgiehl sgiehl closed this as completed Jul 18, 2022
@sgiehl sgiehl added this to the 4.11.0 milestone Jul 18, 2022
@justinvelluppillai justinvelluppillai added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Documentation Improvements to in-app product help messages, or to the Matomo knowledge base. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

No branches or pull requests

5 participants