You can track as many websites as you like that are hosted on the same server as Matomo (Piwik), or hosted on several external servers. Only the server that hosts Matomo needs to run PHP and MySQL.

There is nothing special to do to track websites from different domains. You simply need to create new websites by going to the admin area when logged in as Super User, and then click ‘View the javascript tracking code’ (help) to install on the websites you wish to track. For example, consider the following use case:

  • You have a website built in Java hosted on server1
  • You have a website built in Python hosted on server2
  • You can install Matomo on server3, and track visits from the two other websites

Note about https: Matomo automatically detect if the page being tracked is https (SSL) and would include the piwik.js in secure mode from your Matomo server.

Previous FAQ: How to import logs with a different idsite