Tealium Trace Across multiple domains

Bronze Contributor
Bronze Contributor

Hello,

I am trying to build some pretty straightforward Audiences, Badges, Rules in AudienceStream.

I believe I have things configured properly for testing.  However when I start perfoming my Trace things break down.  

We have a 3rd product that we have storefront for on our domain.  We put people in a upper funnel audience on pageload and when they click through and go to a new domain the trace stops.  However when we "rejoin" the trace job it appears that the user has continued through the funnel but some steps are missing.  

Can we trace cross domain?

1 REPLY 1

Tealium Trace Across multiple domains

Gold Contributor
Gold Contributor

Hello,

Cross-domain tracking is indeed possible with Tealium. To maintain the trace across different domains, you need to ensure that the visitor ID persists across domains. This can be achieved by passing the visitor ID from the first domain to the second domain and ensuring it's picked up by the Tealium tag on the second domain.

One common way to implement this is by appending the visitor ID to the URL when the user navigates to the second domain. You can use Tealium's JavaScript library to get the visitor ID and append it to the URL. When the user lands on the second domain, Tealium should look for the visitor ID in the URL and use it to maintain the trace.

- On the first domain, add a JavaScript code to capture the visitor ID and append it to the links pointing to the second domain:

utag.view({}); // Ensures that the latest visitor ID is available

var visitor_id = utag.data["cp.utag_main__sn"]; // Replace "cp.utag_main__sn" with the correct data layer variable for the visitor ID

// Append visitor_id to the links pointing to the second domain

- On the second domain, add a JavaScript code to extract the visitor ID from the URL and set it as the visitor ID in the Tealium tag:

// Extract visitor_id from the URL
var visitor_id = ""; // Implement the logic to extract visitor_id from the URL

// Set the visitor ID in Tealium
utag.data["cp.utag_main__sn"] = visitor_id; // Replace "cp.utag_main__sn" with the correct data layer variable for the visitor ID

Once you have implemented the cross-domain tracking, you should be able to trace users as they navigate between the two domains.

Please note that you may need to modify the code snippets provided above based on your specific implementation and data layer structure.

Let me know if you want any more details on this. 





shivam joshi
Public