I want to show Visits for the current day on the main page. This page is tracked by Piwik.
How to use API with PHP to receive (unique) visits and impressions today so that I can show them somewhere on the page
$result = file_get_contents("http://mysite.com/piwik/?module=API&method=VisitsSummary.getUniqueVisitors&idSite=1&period=day&date=today&format=php"); echo unserialize($result);
Maybe a later answer, but ...
A few days ago I wrote a new plugin for Piwik, which displays the total visit and views on the image for a user site for a custom date range.
For more information, visit http: // movie archive .com / ru / others / notes-on-html-jquery-php-mysql / 10-piwik -graphical-counter.html
and post any error information here https://github.com/Globulopolis/Counter/issues