You can track as many websites as you like that are hosted on the same server as Matomo, 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.

  1. Login as a Superuser and go to Matomo settings (Administration) Settings Cog Icon > Measurables (Websites) > Tracking code.
  2. Copy the JavaScript tracking code 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 matomo.js in secure mode from your Matomo server.

Read more about sending tracking requests to two or more Matomo servers.

Previous FAQ: How to import logs with a different idsite