matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.7k stars 2.62k forks source link

Visit by days since last visit seems wrong #9839

Open milexjaro opened 8 years ago

milexjaro commented 8 years ago

I have an issue regarding to the title, when a visitor visited a page at 24th Feb 2016 and the last visit was at 18th Feb 2016, why is the visitors->engagement tab not showing the 'days since last visit' table correctly? It's supposed to have a number in '6 days' row, right? capture capture3 capture2

tsteur commented 8 years ago

Thx for creating the issue, this looks like a bug indeed! Maybe it's related to date ranges. Can you see "6 days" when selecting the "Day Feb 24th"?

milexjaro commented 8 years ago

1 2

Thanks for replying, and here are the screenshots, and I still can't see "6 days" when selected the "Day Feb 24th"

tsteur commented 8 years ago

Sorry but one more question: Have you seen this problem also for other visitors? It's possible that maybe just the database had once a connection problem or so and one update was not written on a tracking request. Maybe it works for other visitors?

mattab commented 8 years ago

it is possible that the user could connect to your website from several devices. As you are using User ID feature, the visitor is correctly recognised, but the "Visits by days since last visit" relies on First Party Cookies (FAQ) so if your user has used different devices or browsers, it could explain that "Days since last visit" is not correctly set.

tsteur commented 8 years ago

@mattab I reckon the reason visits since last days is not calculated server side is re archiving performance?

mattab commented 8 years ago

Yes, it would be slow because we don't have the data available in easy to query format. Unless we would select the past historical visits which would be too costly. In the future this could be improved when we store users in a user table (eg log_user, which will be needed for several important features such as Life Time Revenue LTV https://github.com/piwik/piwik/issues/2750 or multi channel attribution modelling #6064

milexjaro commented 8 years ago

Hi, sorry for the late reply, and I found this issue is experienced by other visitors

mattab commented 8 years ago

We haven't been able to reproduce unfortunately. Maybe someone else has experienced this issue?

huang0808 commented 6 years ago

@milexjaro @tsteur @mattab this issue I met too, seems the wrong show in Visits by Days Since Last Visit. beacuse in 365+ days, i did not put tracking code in website, but 365+ days show a value. x

pardvm commented 3 years ago

I also am experiencing the effect described here: the vast majority of visits fall in the "0 days since last visit". However, I can see that it is not true in some cases and, also, that it should be visits in others segments but it isn't.

My matomo version is 3.13.5

Is there anybody out there who has any explanation for this?

CC: @eramirezprotec

mattab commented 3 years ago

This would be the case if you disabled tracking cookies or your users don't support cookies in general? Learn more: https://matomo.org/faq/general/faq_156/

pardvm commented 3 years ago

@mattab, I don't think that the effect is being caused by disabling of cookies in any form: I have 50 sites from several places around the world showing the same effect and it is not likely that 99% of the visitors of all of them are in the "new visits" and "0 days since last visit" segments.

I'll continue observing the case but... I'm really stuck with this.

mattab commented 3 years ago

@pardvm could you post some screenshot of the buggy reports for various websites in your Matomo? Thanks

pardvm commented 3 years ago

@mattab, Sure. Here you are:

Colombia

Colombia

Malaysia

Malaysia

Portugal

Portugal

Spain

Spain

Uruguay

Uruguay