By default, the Matomo JavaScript code on all tracked websites contains the Matomo server URL. This works well for most setups and requires no additional configuration.

In some cases, you might want to hide the Matomo URL completely while still tracking all websites in your Matomo instance. It is possible to do so by modifying your Matomo JavaScript code, and pointing it to a “proxy matomo.php script” instead of your Matomo server URL. This matomo.php script has to be uploaded on each of the websites tracked, and will automatically “forward” all requests to your secret Matomo server.

  • Read the technical documentation on matomo-org/tracker-proxy for how to install this script.
  • Explore the Tracker proxy user guides.
  • Follow the instructions carefully and you will then have all your websites tracked without revealing your common Matomo URL.

Note: this proxy technique also supports the Opt-out feature to exclude visits via the ignore cookie. You may also be interested in White label plugin to provide customised colours and product names for your clients.