Good evening
I just installed Matomo and the plugin. The tracking works like it should - this is my config.php:
'sylvainjule.matomo.url' => 'https://meinewebsite.com',
'sylvainjule.matomo.id' => '1',
'sylvainjule.matomo.token' => 'mein ein zu eins copy und pasted token',
'sylvainjule.matomo.disableCookies' => true,
'sylvainjule.matomo.debug' => false,
So: tracking works, I see traffic in the live view in Matomo. Now I want to install the default blueprint of the plugin according to the readme in the Panel. And then something strange happens:
- The panel quickly looks
- There is an immediate redirect to mywebsite.com/api/matomo-panel/get-bulk-widgets?widgets=[“referrerType”,“websites”,“socials”,“devicesType”,“keywords”,“popularPages”]&period=month&date=today&lang=en&limit=5"
The body of the otherwise empty page includes this JSON:
{"status":"error","message":"Unauthenticated","code":401,"exception":"Kirby\\Exception\\AuthException","key":"error.auth","file":"\/kirby\/config\/api\/authentication.php","line":14,"details":[],"route":"matomo-panel\/get-bulk-widgets"}
The token auth which was generated exactly for this Panel Use Case was used according to the panel:
I am running current Kirby alpha with current Matomo beta
Did anyone encounter this already?
I find it very strange
Thanks
Andreas
PS: Beside my translation to English I checked via a simple GET request: the auth code for the API works if I call it directly in the browser