Segmenting by tenant

Our application is multi-tenant. The tenant model has companies and companies have instances.
A user will have a unique ID and may be provisioned in multiple companies/instances. What is the recommended mechanism for segmenting data by company/instance?

I’ve instrumented a Dimension for company and instance. I see I can generate reports that segment on these data points. Should I be using another mechanism?


I am having the same problem but looks like that question was never answered.

I am thinking I will perhaps programmatically create virtual websites (i.e. each with their own siteId but the URLs for them would mostly be same) and then use them to get stats per tenant.

But I suspect I will have to check if I can restrict access to that info so that each tenant would only access their own stats…

But is this the way to go? Is there a better way?