How to display public visitor stats? With Piwik Analytics — it’s easy to include an image on your website that shows live visitor statistics in a neat graph. Here’s how.
These are called static image graphs which use Piwik analytics data to generate an image graph in PNG file format with various styles and options.
You can include pretty much anything in the graph; such as visitor count, browser versions, countries, screen resolutions, operating systems etc. There are three graph display styles: plotted line, horizontal & vertical bars, and a pie chart.
Setting up Static Image Graph
In this example — I’ll make a simple horizontal bar graph that shows the visitor count from the last 30 days.
<img src="https://wheresmynotes.com/piwik/index.php?module=API&method=ImageGraph.get&idSite=1&apiModule=VisitsSummary&apiAction=get&token_auth=10f149d2d87b19faf2de747e91ba5e7e&graphType=verticalBar&period=day&date=previous30&width=650&height=230" alt="Piwik Visitor Statistics" />
Simply change to the correct website address and path; you are good to go.
Share us a link to your stats for an example?!
PS. This should work the same for new Matomo versions.