Piwik Localhost Tracking

matomo

Solution

You need to add your IP to the `trusted_hosts[]` configuration. If you installed Piwik under localhost, it will only accept tracking requests if called under that name.

In `config.ini.php` add:

[General]
trusted_hosts[] = localhost
trusted_hosts[] = 192.168.1.12

Where `192.168.1.12` is your IP address within your LAN:

Problem

On piwik, I use localhost as a test website. When I type in localhost from my computer, piwik updates its statistics correctly but when another person (co-worker) in the same LAN types in my IP address, it shows the webpage but piwik doesn't update the visits/pageview count. I would like to know why is that? Any help would be appreciated.

Original source