ePrivacy and GPDR Cookie Consent by Cookie Consent Skip to main content

To deploy Meiro Events with The TradeDesk on the website

The TradeDesk is a platform for programmatic buying ads. It is possible to set customer audiences within Trade Desk. 

The whole process called Cookie Syncing will allow enriching meiro_user_id with The TradeDesk user id that can be used further within Meiro for targeting. 

To learn more about Cookie Syncing please refer to this article

To deploy Meiro Events with The TradeDesk on the website, please insert code within the page :

<script type="text/javascript">
 var config = {
   domain: "{{COLLECTOR_DOMAIN}}",
   the_trade_desk: {
     pid: "string pid, required",
     puid: "string puid, optional",
     gdpr: 1/0 number, optional,
     gdpr_consent: "base64url-encoded GDPR consent string, meaningful when 'gdpr' is set to 1"
   }
 }
 var script = document.createElement("script");
 var callback = function() {
   MeiroEvents.track("outboundLinkClick");
 };
 script.onload = function() {
   MeiroEvents.init(config);
   MeiroEvents.track("pageView");
   if (document.readyState === "complete") {
     callback();
   } else {
     window.addEventListener("load", callback);
   }
 };
 script.src = "//sdk." + domain;
 script.async = true;
 document.head.appendChild(script);
</script>