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

How to deploy Meiro Events with The Trade Desk on the website

The TradeDeskTrade Desk is a platform for programmatic buying ads. ItThe Trade Desk offers technology to manage display, social, mobile, and video advertising campaigns. 

For clients who already have The Trade Desk's tracking pixel installed on their website, it is possible to setintegrate customerThe audiencesTrade Desk into Meiro CDP by allowing Meiro Events to collect The Trade Desk user ID. This means that segments built within Meiro CDP can then be exported to The Trade Desk. Desk’s custom audience for precise targeting.

The wholeThis process called Cookie Syncing will allowof enriching meiro_user_id with The TradeDeskTrade userDesk idID thatis cancalled beCookie usedSyncing. further within Meiro for targeting. 

To learn more about Cookie Syncing please refer to this article. 

To deploy Meiro Events with The TradeDeskTrade Desk on the website, please insert code within the page. FollowingThe following script needs to be included in the website’s head (after after <title>  HTML tag). 

This script needs to be placed on EVERY page on your website, it needs to always be present on the web.

<script type="text/javascript">
 var config = {
   domain: "{{COLLECTOR_DOMAIN}}",
   the_trade_desk: {
     pid: "Partner ID from TheTradeDesk",
     gdpr: 1/0 number (optional),
     gdpr_consent: "base64url-encoded GDPR consent string, meaningful when 'gdpr' is set to 1 (optional)"
   }
 }
 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>