Piwik only loads from localhost

Hey everyone,

I am piloting Piwik as an option for tracking web analytics for our intranet Sharepoint website. So far, we’ve been able to setup Piwik with MySQL 5.6 and PHP 5.6.0 and explore the interface a little bit, but we are only able to do this by doing an RDP to the server, and launching it as http://localhost/piwik . If we try to launch this as http://servername/piwik (from either the web server or desktop PCs in the domain), we only see part of the landing page (see attached). I’m fairly junior when it comes to IIS/Web Servers, can anyone advise what I am missing?

I thought that perhaps during the setup I had specified the website to be ‘localhost’ instead of 'servername, but I can’t find a means to change this now, or even to confirm if thats the issue? Also - if I right click the broken image and copy the URL, it copies http://unknown/piwik/plugins/Morpheus/images/logo.svg . If I swap unknown for servername it loads up the Piwik logo image.

Any help is greatly appreciated!

Hi there,

Great that you’re trying Piwik. For your sharepoint we recommend to use the Sharepoint analytics tool available here: SharePoint Analytics - Analytics Platform - Matomo

Also please try with the latest Piwik version 2.11.2

Hey Matt,

Thanks for taking the time to get back to me. After updating to 2.11.2 and trying to browse to http://servername/piwik I was met with an error message, telling me to edit the /piwik/config/config.ini.php and change the trusted_hosts from localhost to servername. After doing this, it works just as we would like. The error messages were not present in version 2.10, so this feature definitely helped me out.

I will now see if we can make use of the Sharepoint features! Can this be added into an existing Piwik build, or is this a separate installation?

Yes Sharepoint can be added to existing Piwik server (either self hosted by you, or on the Piwik Cloud)

Good that the trusted_host thing was fixed for you too!