Passing Profile ID in the URL Between Owned Domains
System then will recognize that the profile already exists and is redirected from other domain and will connect the same profile to the customer even if customer never visited this page before.
Please note that default behaviour (without
passing of profile ID enabled) would be to create a random profile ID
if customer never visited the page before. And later merge the profile if customer provides data that can be used
passing of profile ID feature, add
This will automatically update all
A.href links on the page with the
__tr_src parameter, which will
contain the current profile ID, source ID respectively, if the A.href URL end with any of the defined domains
trackExternalLinks. In our example it is 'example.com' and ,
Here is the explanation how Tracardi treats referenced profiles IDs.
Tracardi checks if there is referer data containing a profile ID and source ID. If it exists and is valid, it merges the referred profile with the existing profile in the local storage on the visited page (domain). If there is no existing profile on visited page, it replaces current generated profile ID with the referred one.
It also invalidates the session if it has the wrong profile ID and creates a new session if none exists. If the referred profile ID is invalid, it logs a warning. Similarly, if the referred source ID is invalid, it logs a warning and shows the error message.