Skip to main content

TCF v2.0 Onsite Pixel adjustment

Get your Adtriba Pixel ready for TCF v2.0.

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.

Adtriba is on the IAB (Interactive Advertising Bureau) Global Vendor List for TCF (Transparency and Consent Framework) v2.0. You can use the Adtriba onsite pixel with publishers that accept only TCF v2.0-certified vendors.

To meet CMP (Consent Management Platform) and TCF v2.0 requirements, add the pixel below to your website. The snippet sends data to Adtriba only when a user gives consent through your CMP.

Replace your current adtriba.js pixel with the snippet below on all pages of your site. Keep any other pixels you already use, such as conversion or extended e-commerce snippets.

<script type="text/javascript">  
(function(){  
var id = "adtriba-cmp-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.type = "text/javascript";  
a.async = true;  
a.id = id;  
a.src = "https://cdn.adtriba.com/v2/adtriba-cmp.js";  
s.parentNode.insertBefore(a, s);  
}  window.adtriba = window.adtriba || [];  
window.adtriba.push(["pageview"]);  
})();  
</script>
Did this answer your question?