You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the API for our Matomo we wanted to generate an ImageGraph with the folowing API call that represents the uniqe Visitors, the visits and the pageviews:
@Makathen Thanks for creating this issue. The unique visitor metric actually should be available for this report.
I was able to reproduce that locally but couldn't quickly to sort out, why the graph can't display it.
The report API.get is actually a very special one, as it tries to combine all other available get reports. Maybe the column gets unavailable while combining those reports. Guess we need to investigate that further.
Also I just found that if you call the API.get Method without the ImageGraph and period set to month for example:
OurURL?module=API&method=API.get&idSite=1&period=month&date=2022-01-01&format=Json&token_auth=OutToken&showColumns=nb_uniq_visitors,nb_visits,nb_pageviews
the nb_uniq_visitors is shown. But when the period is set to year it disapears again.
Unique visitors metrics are not calculated for years by default. This behavior can be changed by setting enable_processing_unique_visitors_year = 1 in the config. But that can slow down the archiving a lot.
When using the API for our Matomo we wanted to generate an ImageGraph with the folowing API call that represents the uniqe Visitors, the visits and the pageviews:
OurURL/index.php?module=API&method=ImageGraph.get&idSite=1&apiModule=API&apiAction=get&period=month&token_auth=OurToken&date=2021-01-01,2021-12-31&columns=nb_visits,nb_pageviews,nb_uniq_visitors
Expected Behaviour
The ImageGraph is generated.
Actual Behaviour
Getting an error message that nb_uniq_visitors was not found in the report.
When using period=day the graph gets generated. On the Dashboard, of our Matomo Site, the graph set to period month is also generated normaly.
Is this a potential Bug or is the setting for month just not supported for the API call?
The text was updated successfully, but these errors were encountered: