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
Visitor Profile with more than 100 visits shows negative visits #14308
Comments
@mattab We are building up all the data summarized in the profile based on the last 100 visits (if not configured higher). So it might be correct to simply hide the "show more" link as soon as those 100 visits are shown |
@sgiehl we can't really hide the "show more" link as it's important we give access to users to all their data that is stored and available in Matomo. When there are >= 100 visits, could we maybe issue a SQL query to count() how many total visits there are for this visitor, and use this value to write "Visit #xyz" instead of "Visit #100" ? |
I'm not sure if it's a good idea to do that. The query for getting the visits is already quite slow for bigger databases. Adding another query that needs to check the whole table for matching visits might make it even worse. |
A Would we be able to rename the visits when loading more like starting with I suppose |
If the value in |
Actually, if I see this right, the visitor count comes from a param |
Then I guess the simplest solution would be to update the numbers of the already displayed visits? Eg when some loads another 10 visits after 100 already displayed, it would update the first visits displayed to 110 and so on, so the last one displayed again has number 1. Not an ideal solution, but still better to display negative numbers, right? |
Sounds good. The very first visit should maybe say something like |
When loading the Visitor Profile for a Visitor that visited the website more than 100 times, then when loading more visits (clicking 10 times on "Load more visits" or so), the visit count end up showing a negative number
#-3
, when we expected visits count to go from#1
to#1xx
URL to reproduce: https://demo.matomo.org/index.php?module=CoreHome&action=index&date=today&period=week&idSite=1&updated=4#?idSite=1&period=week&date=today&category=General_Visitors&subcategory=Live_VisitorLog&popover=visitorProfile$3Ab3b6d6a3249bc1fb&segment=visitCount%3E%3D200
Screenshot showing the problem:
The text was updated successfully, but these errors were encountered: