How to check if cross website or cross domain tracking is working?
1. Do you need to track across domains?
(Example: dreamdata.io and signup.dreamdata.io)
By default the dreamdata web tracking script will track visitors across subdomains that full under the same main domain. However, it is best practice if you have a single cookie consent that is carried between your subdomains. If visitors are required to re-accept cookies when travelling between subdomains, this can often cause an issue with Dreamdata’s ability to track the visitor when new cookies are placed.
How to check that cross-website tracking is working?
Step 1: Open your website→ Accept Cookies→Open Inspect Mode→ Open Application Tab→ Open Cookies folder→ copy the dd_anonymous_id/ajs_anonymous_id
Step 2: Click on a link on your site that takes you to the next subdomain you need to track→check the anonymous_id again If the anonymous id is consistent, then your across website tracking is working as expected. If the id has changed, then you will likely need to adjust your cookie consent rules so that cookies are not reset on that page if the visitor has already accepted cookies.
2. Do you need to track visitors across websites?
(Example: dreamdata.com and dreamdata.io)
Follow this documentation: Cross Website Tracking
How to check that Cross Domain Tracking is working?
Step 1: Open your website→ Accept Cookies→Open Inspect Mode→ Open Application Tab→ Open Cookies folder→ copy the dd_anonymous_id/ajs_anonymous_id
Step 2: Click on a link on your site that takes you to the next subdomain you need to track→check the anonymous_id again
If the anonymous id is consistent, then your across website tracking is working as expected.
If the id has changed, follow these steps:
-
Check that the script has been implemented according to the documentation linked above
-
Check that the hosts in your script are correct
-
Remember, cross website tracking only works when a visitor clicks a link on site A that takes them to site B. Check that the page where the link lives has both web tracking and the cross domain tracking scripts running.