Piwik with Symfony2

i use piwik with symfony2, so to integrate piwik in a samfony project i used KnpPiwikBundle but i have this error :

Piwik API error: You can’t access this resource as it requires an ‘view’ access for the website id = 2.

any help is appreciated

thanks in advance :slight_smile:

Sorry please ask the author of the Symfony plugin - you should somehow specify the website ID in some place in the plugin maybe ?

Hello app_dreams,

you need to add &token_auth=xxxxxxxxxxx in your url/path