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
Unique Visitors KPI Metric doesn't display when selecting higher periods #20216
Comments
Thanks for reporting this @Starker3, I can recreate this on demo.matomo.cloud and locally on 4.x-dev. It also seems that the 'Unique Visitors' metric is only available for selection when the current period is Day This is probably caused by this
In which case we should explicitly handle the scenario where the unique visitor metric is already displayed in the dashboard KPI widget and then the current period is changed to a period where unique visitor data is not available. Perhaps a warning could then be shown: "Unique visitor data is not available for year periods. For more info read this [faq]" |
Thanks @bx80 In this specific customers case the metric is enabled for the Month period as well, which is why I think that there is some data shown in the Sparkline and the Widget shows some data there. |
It does look like there is a bug here somewhere with displaying the Unique Visitors metric label. Even with |
That one should be related to this piece of code: matomo/plugins/API/ProcessedReport.php Lines 65 to 70 in c11469e
The todo actually already tells what should be done, but not sure if that would have any other side effects... |
When selecting the KPI Metric for the Dashboard widget, it's possible to select the metric "Unique Visitors":
And this works as expected for the Day period, but selecting any other periods such as Week, Month or Year regardless of if the Unique Visitor Metrics are enabled for that period, results in the widget showing no label even though it loads the data and sparklines:
The KPI Metric also is not selectable from the drop-down menu when any period other than Day is selected.
The text was updated successfully, but these errors were encountered: