PHP curl to login and download a page from Piwik?



I would like to use curl to login and then download the Visits Overview/Summary page from Piwik:


But each time the cookie file contains this: FALSE / FALSE 0 PIWIK_SESSID XXXXXXXXXXXXXXXXX

So I suppose the login is unsuccessful?


Any ideas?


Is it even possible in any way to download the Visits Overview/Summary page from Piwik?

(Matthieu Aubry) #4

Yes of course it is possible to Export ANY data from Piwik. There are several ways, for example you can click the icon below the graph / table, to download the reports. Or you can use the API: Piwik Analytics API - Analytics Platform - Matomo