Follow the steps below to set up a custom tracking domain (CTD) for single tenant instances. For more information about how it works see custom tracking domain (CTD) article.
If your API tracking domain is not your subdomain or you have multiple websites on different domains you will need to set additional custom tracking domains for each of your tracked website domains. Follow the steps below.
In case you have a single tenant instance, and your API tracking domain is already a subdomain of your website it might automatically act as a custom tracking domain. Find out what kind of DNS records you are using and see if you need any changes. Learn about differences in DNS records.
Custom tracking domain setting in project settings is not available on single tenant instances and domains will thus be configured by our IT.
Define a list of tracking subdomains of your websites to be used as tracking domains e.g. analytics-api.yourdomain.com. The selected subdomain should be dedicated entirely for this use, nothing existing should run there, not even on sub-sub domains e.g "something.analytics-api.yourdomain.com".
Setting DNS records on an incorrect domain that is used for other purposes can have serious consequences.
Provide the list of domains and the type of DNS records you wish to use: NS zone (recommended) or CNAME to your CSM. Our developers will configure the domains on the Bloomreach Engagement side and provide you with instructions to set the DNS records.
Our IT will provide the NS DNS records to be configured for your domains. Please bear in mind that setting DNS records doesn’t happen instantaneously and can take up to 24 hours.
Due to this delay, you need to plan ahead and understand the impact of DNS changes. For example, when you switch from an old e-mail tool to Bloomreach Engagement, the delay during the DNS change can affect deliverability.
There are commonly 4 NS records that need to be set.
In case you decide to use CNAME records, our IT will provide the destination domain to which clients need to set the CNAME records. Once the client knows the destination domain, they will need to set a DNS CNAME record for the new subdomain.
CNAME records does not work to ensure persistent cookies and anonymous identity.
Make sure you followed steps 2. and 3. and your new tracking domain is configured. Try to test load our SDK from your new domain (you can do this via any browser)
Be aware it may take a while till the DNS records are propagated and available for validation. If you set your records and your domain is not working, try coming back to it in 24 hours. If it still does not work, the records might not be set correctly.
There are up to three places where the snippet needs to be updated, based on the version of the web integration snippet you are using. You can update the snippet directly using the instructions below or look into the Web Integration tab where, once the CTD is set up, you can find the updated snippet. In case you have multiple custom domains in one project, follow the steps below.
When updating the snippet be careful to keep all your existing configuration of the initialization unchanged.
"target" parameter to your initialization config and set it to your custom domain e.g.
Look for the link to
exponea.min.js in the initialization snippet and replace the JS SDK domain to your custom tracking domain.
If you just see r.target+"/js/exponea.min.js" you have a newest version of the snippet and this step is not needed.
In case you are using the older implementation of non-flickering experiments update the “path” parameter in their initialization config and set it to your custom domain
webxpClient.path = https://analytics-api.yourdomain.com
webxpClient.path = 'https://analytics-api.yourdomain.com';
webxpClient.sign = '<PROJECT-TOKEN>' + '/' +
Visit your website and make sure everything is working (events are being tracked, weblayers are displayed…).
You might also review the cookies and check the expiry when switching to your new domain, before doing so please make sure to read how CTD works and which cookies are used.
Updated 3 months ago