Hi
Using static embedded graphs for my site. Working fine so far. Got a bunch of pretty charts but my boss asked me for “unique visitors” evolution graph
I’m stuck. I can’t get such a graph. The following code worked fine:
module=API&method=ImageGraph.get&idSite=3&apiModule=VisitsSummary&apiAction=get&graphType=evolution&period=day&date=previous30&width=500&height=250
But when I try to get getUniqueVisitors I get:
Invalid API module and/or Action
This is my URL
module=API&method=ImageGraph.get&idSite=3&apiModule=VisitsSummary&apiAction=getUniqueVisitors&graphType=evolution&period=day&date=previous30&width=500&height=250
Any help would be much appreciated.
Thanks
matthieu
(Matthieu Aubry)
2
You were almost there, the correct parameter is: &columns=
?module=API&method=ImageGraph.get&idSite=3&apiModule=VisitsSummary&apiAction=get&graphType=evolution&period=day&date=previous30&width=500&height=250&columns=nb_uniq_visitors
Awesome!!!
Thanks for your help Matt
Given the above shouldnt the following work as well? I get No data for this graph
https://demo.matomo.cloud/?module=API&method=ImageGraph.get&idSite=1&apiModule=VisitsSummary&apiAction=get&graphType=evolution&period=day&date=previous30&width=500&height=250&columns=nb_uniq_visitors&token_auth=anonymous
Please don’t reactivate so old posts (8 years old!!).
Prefer to cite another post than reactivate one…
Try
https://demo.matomo.cloud/?module=API&method=ImageGraph.get&idSite=1&apiModule=VisitsSummary&apiAction=get&graphType=evolution&period=day&date=previous30&width=500&height=250&token_auth=anonymous`
(removed &columns=nb_uniq_visitors
)
:
As this post is very old, the API has probably changed a little bit…
I apologize for re-opening and many thanks for your reply