Static images graph for dummies


#1

Hello. I would like to add some static images graph in my wordpress pages. I trying following this: Metadata: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3 but I don’t be able to do this.

I’m no expert of API and coding, so I tryed to copy the example url and change it to match with my url:

http://mydomain.org/index.php?module=API&method=ImageGraph.get&idSite=3&apiModule=VisitsSummary&apiAction=get&token_auth=mytokennumber&graphType=evolution&period=day&date=previous30&width=500&height=250

Ok, don’t have a laugh for me :wink:
I’m not very expert, I’m looking for someone to show me how to add these images.
Thank you very much.


(Matthieu Aubry) #2

Hi there, yes replacing by your values should work fine!


#3

Thanks for reply! :slight_smile:

This html code in test page http://silvioto.altervista.org/piwik-images.html don’t work.


<img src="http://silvioto.altervista.org/index.php?module=API&method=ImageGraph.get&idSite=3&apiModule=VisitsSummary&apiAction=get&token_auth=454bc544f4dxxxxxxxxxxfd977b7d65&graphType=evolution&period=day&date=previous30&width=500&height=250" alt="">

Suggestions? Thanks.


(Matthieu Aubry) #4

silvioto.altervista.org -> replace it with your Piwik URL


#5

I made it! :slight_smile: Work now… Thanks, thanks a lot.