Matomo (Piwik) can track visits on your intranet website as long as Matomo itself can be accessed by people in your intranet network.

What is different between a normal website and an intranet website? When tracking visits in an intranet website, Matomo assumes that many people will possibly visit the intranet website pages using a similar configuration (For example, similar computers, similar phones, similar IP addresses), and Matomo will use first party cookies to more accurately define how a unique visitor is identified.

To make sure that all unique visitors are tracked correctly in your intranet, there are a few choices:

1) Instead of creating a “Website” in Matomo, create an “Intranet” website. Go to Administration > Measurables > Manage, and click “Add a new measurable”, and select “Intranet Website”. (if you are not seeing the ‘Intranet’ option, please make sure you use at least Matomo 3.6.1 and that the plugin ‘IntranetMeasurable’ is activated).

2) Or you may also use the ‘User ID’ feature to assign your users with a unique persistent User ID string. This will make sure your users are tracked accurately across all devices. Learn more in User ID guide.

If you have already created a website in Matomo and want to convert it to an Intranet website, you can make your website an intranet by running the following query:

UPDATE `site` SET type = 'intranet' WHERE idsite = XYZ

(Replace XYZ by the website ID you want to change to an Intranet).

How do I get accurate geolocation for people viewing my Intranet site? When many people viewing your website share the same IP address (for example because they’re connecting via a VPN or from within your intranet network), then to still track geolocation for these we recommend using this third party plugin from the Marketplace IntranetGeoIP plugin.