PHP curl to login and download a page from Piwik?


#1

Hello,

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

piwik/index.php?module=CoreHome&action=index&idSite=1&period=day&date=today#module=VisitsSummary&action=index&idSite=1&period=day&date=today

But each time the cookie file contains this:

#HttpOnly_domain.com FALSE / FALSE 0 PIWIK_SESSID XXXXXXXXXXXXXXXXX

So I suppose the login is unsuccessful?


#2

Any ideas?


#3

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