Filter by Sub Domain


We have a product where users can set up their site on either a sub domain on 1 of our existing domains or purchase a custom domain.

We want users to be able to view the amount of traffic they are getting to their site

Now, we have set up each domain as a separate site.

When going to Settings > Websites, it says you can specify the URLs for that website.

Ideally, we would like to have:

I see that there is SitesManager.addSiteAliasUrls (idSite, urls) which would be where we can add the different domains.

However, as we need to segment traffic per URL, I cant see a way to do this using the API

Any help would be much appreciated.

Kind regards,