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

Why the visitor_days_since_first is not gradually increasing #14452

Closed
chenqingan opened this issue May 16, 2019 · 13 comments · Fixed by #14491
Closed

Why the visitor_days_since_first is not gradually increasing #14452

chenqingan opened this issue May 16, 2019 · 13 comments · Fixed by #14491
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@chenqingan
Copy link

image
Look at this image, according to the concept of visitor_days_since_first, this value should have be six.
There are many error values in my project like this, and it is happening yet.
My matomo version is 3.5.1

@tsteur
Copy link
Member

tsteur commented May 16, 2019

Could you update to the latest version and see if it's fixed there? AFAIK there was some work done on this. Feel free to reopen the issue if you still experience any issues with the latest version.

@tsteur tsteur closed this as completed May 16, 2019
@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label May 16, 2019
@chenqingan
Copy link
Author

chenqingan commented May 21, 2019

Today I have updated to the latest version (3.9.1). And there are still same problems. The visitor_days_since_first of all users visiting today change to zero.

image
image

@chenqingan
Copy link
Author

@tsteur How can I reopen this issue, I cant find the entry.

@tsteur
Copy link
Member

tsteur commented May 21, 2019

@diosmosis do you remember maybe details about it? I think you looked at it a while ago

@tsteur tsteur reopened this May 21, 2019
@diosmosis
Copy link
Member

We changed it to set the value to 0 if the visitor wasn't known. There might be an issue w/ the code that checks if a visitor is known or not. @chenqingan can you see what visitor_returning for those visits is set to?

@chenqingan
Copy link
Author

Okay.Then I found more problems.
Today the value is still zero. I updated to 3.9.1 at May 21th. I afraid that the value will be only zero later.
Before I update to the latest, such problem is existing, but casual and random. The percentage of wrong value is about 1%.
image
image
image

@diosmosis
Copy link
Member

Hmm, I'm not sure what to make of that. @chenqingan do you have access to web server logs for your matomo (ie, apache logs)? If you can find the log entry for the request to matomo.php for a specific problematic idvisitor/time, can you check the value of _idts? If it's non-zero, then the javascript tracker is working properly and matomo is setting the value incorrectly. If it's zero, then it means the javascript tracker is failing to send the proper value. In that case it would be helpful to look at a few of the user agents for visitors where this isn't working.

@chenqingan
Copy link
Author

chenqingan commented May 23, 2019

grep -cE '_idts=[^0-9]+' matomo-access_log
Computing result is 0.
And all the _idts have values. The values are timestamps.

@diosmosis
Copy link
Member

@chenqingan can you email the access logs for a couple problematic visitors to hello@matomo.org (grep the file by visitorid/userid)? We can try and reproduce the issue.

@chenqingan
Copy link
Author

@diosmosis I have sent an email to you.

@diosmosis
Copy link
Member

@chenqingan thanks for sending the logs, I see the problem, new_visit=1 is used which is exposing a bug in the visitor recognition code. Will look into a fix.

@diosmosis
Copy link
Member

@chenqingan would you be able to check if this change works for you: #14491 ?

@mattab mattab added this to the 3.10.0 milestone May 28, 2019
@mattab mattab added Bug For errors / faults / flaws / inconsistencies etc. and removed answered For when a question was asked and we referred to forum or answered it. labels May 28, 2019
@mattab mattab modified the milestones: 3.10.0, 3.11.0 May 28, 2019
@chenqingan
Copy link
Author

@diosmosis Im afraid that I couldn't deploy this merge to my online edition. Because I have only one productive edition that is used to assure apps work normal. Sorry :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants