Custom Domains


If your site makes use of custom domains, then you may need to implement the domain parameter. The domain parameter should be passed as part of the __reach_config. It should be set as the custom domain on the pages that are loaded via custom domain and as the primary domain when the page is being loaded via the primary domain.

So if you are loading, then the domain should be set to

If the URL is, then the domain should be set to Note that this should not be done with JS on the client side, but should be done on the server side. The reason for this is to attempt to ensure things like web page translator's domains (such as Google Translate) do not get counted multiple times.