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
Using period=range, an empty list is returned if there is no data for one date in the date range #19460
Comments
@Situphen thank you for reporting this, our product will review this. |
@peterhashair it'd be good to confirm we can reproduce this issue and check it's not a regression. |
@Situphen trying to reproduce this, but it seems like it works on my local. I notice your label param is |
I tried a request with |
@Situphen how about without label, and do a search on-page (ctrl+f) for |
With Request parameters without
Correct response (3 responses with the label With Request parameters without
Incorrect response (nothing when filtering with |
@Situphen thanks for providing this, I will do more investigation on this |
As you were not able to reproduce this behavior, I investigated further and for some date range it works and for some other it doesn't. So I downloaded the data with |
@Situphen thank you very much for providing the additional info and scripts, it really helps, I will come back to you ASAP. |
@Situphen I haven't had a look in detail, but that might be an issue of data truncation. When reports are archived, the aggregated data is limited to a certain amount of records. For actions the default is 500 for the base report and 100 for all subtables. Depending on the amount of page you are tracking it might happen that pages that are visited quite few are summarized into a |
I am trying to get some statistics such as
nb_visits
for a specific label (corresponding to a URL) over a specific range of dates, but sometimes Matomo response is just an empty list. While investigating, I found that if there is no data for one date in the date range, then the response is an empty list.Request with
period=day
Request parameters:
Current and correct response:
Request with
period=range
Request parameters:
Current Behavior
Current response:
Expected Behavior
Correct response:
Steps to Reproduce (for Bugs)
I guess any requests with
method=Actions.getPageUrls
, some correctlabel
specified,period=range
anddate
with a date range that as at least one date without data.Context
See the first paragraph.
Your Environment
The text was updated successfully, but these errors were encountered: