Filter by Sub Domain


#1

Hi,

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:

example.com
user1.example.com
user2.example.com
user1domain.com
user2domain.com

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,

Chad