Navigation Menu

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

Reporting API: range with today does not include today? #15316

Closed
mockey opened this issue Dec 24, 2019 · 4 comments
Closed

Reporting API: range with today does not include today? #15316

mockey opened this issue Dec 24, 2019 · 4 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@mockey
Copy link

mockey commented Dec 24, 2019

It seems that a reporting API call with:
period=range&date=YYYY-MM-DD,today
actually only includes yesterday's data but not today's.
I can get today's data when I use tomorrow's date.
Is that intended that way?

@mockey
Copy link
Author

mockey commented Dec 25, 2019

Correction: I seems that a certain start date causes wrong results. Actually I request an event with:
module=API&method=Events.getName
and I get the right number of events with a start date of 2019-11-30 but I get less events with 2019-11-29. What could cause this?

@mockey
Copy link
Author

mockey commented Jan 4, 2020

Ok, I think the issue is that reports with custom ranges are not getting updated when the next archive is due. I think I fixed that by adding a custom range to archiving_custom_ranges[] i the config.ini.

@mockey mockey closed this as completed Jan 4, 2020
@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Jan 5, 2020
@tsteur
Copy link
Member

tsteur commented Jan 5, 2020

BTW were you using Matomo 3.12 or newer? It should have been maybe fixed there.

@mockey
Copy link
Author

mockey commented Jan 7, 2020

I'm using 3.13.
BTW: Can it be that the week between the years does not get archived correctly?
The week from 2019-12-30 to 2020-01-05 has its last archived report on 2019-12-31.
The weeks before and after work correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants