Passing Profile ID in the URL Between Owned Domains (Cross Domain Event / Cross Domain Identification)
This feature is beneficial if you want to ensure that the same profile ID is created within owned domains. For example, if you own two domains that are linked and you click and redirect user from one domain to another domain, the same profile ID should be used. The JavaScript code can be used to rewrite links on the page to contain the current profile and pass it to destination domain. However, the profile must first exist in the system.
System then will recognize that the profile already exists and is redirected from other domain and will connect profiles.
Default Behavior (without Cross-Domain Events):
- First Visit: A random profile ID is created for a new visitor.
- Subsequent Visits: The existing profile ID is reused.
- Merging Profiles:
- Only occurs when the user provides identifiable data (e.g., email during sign-in).
- Without such data, profiles remain separate.
Cross-Domain Events Advantage:
- Prevents Multiple Profiles: Avoids creating separate profiles for the same user across different domains.
- Automatic Merging: The system connects profiles based on the sequence of events, even without explicit merging keys like email.
- Improved Tracking: Maintains a single user profile across all your owned domains.
This feature is particularly useful when you can't rely on traditional merging methods (like email sign-ins) to connect user profiles across your different websites.
Note
This is commercial feature
Javascript Configuration
To enable the "passing of profile ID" feature:
- Add
trackExternalLinks
to thesettings
object in your Tracardi configuration:
Example | |
---|---|
-
This configuration automatically modifies
<a>
tags on your page, adding__tr_pid
(profile ID) and__tr_src
( source ID) parameters to links ending with the specified domains. -
When a user navigates between your domains, Tracardi processes the profile data as follows:
a. Checks for valid referrer data (profile ID and source ID). b. If valid, marks for merging the referred profile with the existing local profile. c. Logs warnings for invalid profile or source IDs.
- Destination website must have tracardi javascript snippet connected and be configured to accept the passed parameters.
Here is the example of the configuration.