Tracking mutliple instances of a site

Hi,

We have an unusual set up where would like to track across multiple instances of a site, and I haven’t been able to figure out if it’s possible with Matomo.

We have a web application that we deploy multiple instances of for different clients. e.g.
clientA.domain.com is one instance, clientB.domain.com is another.
This means each client has their own /upload page, for example

What we’d like to track is usage across all instances as the same so we can statistics for our /upload feature in general, not divided by domain or client.

Is this possible? So far, when trying to configure the different domains as 1 site, /upload views are being listed as different pages.

I’ve tried “setCustomUrl” but it doesn’t set the url, it sets the path.

Thanks,
Lloyd

I’ve managed to do this by using the Tracking HTTP API: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3 as the URL can be sent explicitly.

If there is a better way, please let me know.

Thanks,
Lloyd