Mass Building Sites, Auto Tracking?


I am mass building websites and would like Matomo to track all visits to them, without adding a new website to the dashboard and without using a different tracking javascript code every time.

Is it possible to generate one “universal” code and using it over and over again?



There is no universal code, but that doesn’t mean that you can’t automate adding Matomo:
The SitesManager API has many endpoints that help you in your case:

SitesManager.addSite allows to add sites with a single HTTP request and SitesManager.getJavascriptTag gives you the tracking code for a specific site ID.

Are there any limitations how many page in a website can Matomo handle?

Does anyone have a link to where I can see how to aggregate data from pages into an overview?