We have a quite strange problem. This is how our application is set up:
- We have a piwik server with several sites.
- We have a piwik user for each site, each user has “view” access to his own site, and no access to the other sites. Anonymous users have no access to any site.
- We have an application, that is deployed in several websites. There is a page in which we include a Piwik panel with statistics from this site. In the include url, we give the site id, and the token_auth of the user of this site, so our clients can’t view statistics of other sites.
The problem is that all the widgets that show graphs (lines, bars or pie charts) say “there is no data for this graph”. But widgets displayed as a table, they do actually show data! In fact, if we change the display mode of any widget, it’s the same: graphs have no data and tables have.
On the other side, if we give “view” access to the anonymous user, or if we log in as a administrator user in the piwik site in the same browser that we are viewing the application, all widget show their data without problems, both graphs and tables.
We have no clue of what is happening, nor what to check or how to make a workaround. Any help?