Note: Adtriba Core is a legacy feature that we continue to support but no longer sell. The latest version of this feature is available as Funnel Measurement.
If you are already using Funnel Measurement, find more information here. To upgrade, contact us.
What is a cross-domain switch?
A website normally runs on one domain, such as www.mywebsite.de. Due to architectural constraints, the domain can switch during a user session.
Example:
A user enters www.mywebsite.de.
The user adds a product to the shopping cart and proceeds to checkout.
At checkout, the user leaves www.mywebsite.de and enters www.mywebsite.com/checkout.
Why is a cross-domain switch critical for Adtriba tracking?
When the user leaves the original domain, the first-party cookie set on www.mydomain.de and its data are lost on www.mydomain.com/checkout.
If Adtriba is integrated on the .com domain as well, Adtriba sets a new first-party cookie. The new touchpoint is recorded as direct.
A cross-domain switch causes these problems:
You lose the real touchpoints.
Customer journeys on myword.de will not complete successfully in this case.
How to prevent tracking issues
Adtriba provides a pixel-based solution for common cross-domain challenges.
Follow the instructions below.
Extend the integration snippet with the cross-domain option
Define the data-project-cross-domain option in the configuration block with the required domain name.
<script type="text/javascript">
(function(){
var id = "adtriba-js";
var init = document.getElementById(id); if (!init) {
var a = document.createElement("script");
var s = document.getElementsByTagName("script")[0]; a.setAttribute("data-project-tracker-id", "YOUR_PROJECT_TRACKER_ID");
a.setAttribute("data-project-cross-domain", "my-project.com"); a.type = "text/javascript";
a.async = true;
a.id = id;
a.src = "https://cdn.adtriba.com/v2/adtriba.js";
s.parentNode.insertBefore(a, s);
} window.adtriba = window.adtriba || [];
window.adtriba.push(["pageview"]);
})();
</script>If you have more than one domain, enter them as a comma-separated list.
<script type="text/javascript">
(function(){
var id = "adtriba-js";
var init = document.getElementById(id); if (!init) {
var a = document.createElement("script");
var s = document.getElementsByTagName("script")[0]; a.setAttribute("data-project-tracker-id", "YOUR_PROJECT_TRACKER_ID");
a.setAttribute("data-project-cross-domain", "my-project-a.com,my-project-b.com,my-project-c.com"); a.type = "text/javascript";
a.async = true;
a.id = id;
a.src = "https://cdn.adtriba.com/v2/adtriba.js";
s.parentNode.insertBefore(a, s);
} window.adtriba = window.adtriba || [];
window.adtriba.push(["pageview"]);
})();
</script>