Default site 1 for all blogs in a multisite
-
Hello,
We have had a Piwik instance for sometime. It’s running 2.2.2.WP-Piwik wasn’t getting any tracking code. I checked the access log on the Piwik instance. This is called:
https://statistics.library.dmu.ac.uk/Piwik/?module=API&method=VisitsSummary.getUniqueVisitors&idSite=1&period=day&date=last30&filter_limit=&token_auth=changedtoprotecttheinnocent&expanded=&format=PHP&url=https%3A%2F%2Fourdev.dmu.ac.uk
and got:
a:2:{s:6:"result";s:5:"error";s:7:"message";s:86:"You can't access this resource as it requires an 'view' access for the website id = 1.";}
I added “view” for the first site for my WP user and get:
a:30:{s:10:"2014-06-24";d:1596;s:10:"2014-06-25";d:1373;s:10:"2014-06-26";d:1266;s:10:"2014-06-27";d:1066;s:10:"2014-06-28";d:728;s:10:"2014-06-29";d:906;s:10:"2014-06-30";d:1485;s:10:"2014-07-01";d:2062;s:10:"2014-07-02";d:1351;s:10:"2014-07-03";d:1339;s:10:"2014-07-04";d:1086;s:10:"2014-07-05";d:728;s:10:"2014-07-06";d:814;s:10:"2014-07-07";d:1349;s:10:"2014-07-08";d:1290;s:10:"2014-07-09";d:1324;s:10:"2014-07-10";d:1304;s:10:"2014-07-11";d:1106;s:10:"2014-07-12";d:661;s:10:"2014-07-13";d:757;s:10:"2014-07-14";d:1318;s:10:"2014-07-15";d:1261;s:10:"2014-07-16";d:1353;s:10:"2014-07-17";d:1189;s:10:"2014-07-18";d:1036;s:10:"2014-07-19";d:685;s:10:"2014-07-20";d:771;s:10:"2014-07-21";d:1311;s:10:"2014-07-22";d:1209;s:10:"2014-07-23";d:510;}
which looks like pairs of dates and numbers. I might expect our WP website domain to be listed in there.
The next call in the access log is:
https://statistics.library.dmu.ac.uk/Piwik/?module=API&method=SitesManager.getJavascriptTag&idSite=1&period=&date=&filter_limit=&token_auth=changedtoprotecttheinnocent&expanded=&format=PHP&mergeSubdomains=1&mergeAliasUrls=1&url=https%3A%2F%2Fourdev.dmu.ac.uk
which has “idSite=1”. This returns Piwik JS for the first website and not, in this case, the 15th.
Is this a configuration issue or related to versions?
Best regards.
- The topic ‘Default site 1 for all blogs in a multisite’ is closed to new replies.