DigiTrust is a consortium of publishers, exchanges, and DSPs that provide a standard user ID for display advertising similar in concept to ID-for-Ads in the mobile world. Subscribers to the ID service get an anonymous, persistent and secure identifier for publishers and trusted third parties on all browser platforms, including those which do not support third party cookies by default. See the DigiTrust integration guide for more details.
At some point the DigiTrust module will be made available as part of the Prebid.js Download page. However, that integration may take several months, so in the meantime, this memo provides instructions for publishers and integrators to manually pull DigiTrust code into their Prebid builds.
The standard options:
curl -o digitrust.js http://cdn.digitru.st/prod/1/digitrust.min.jsNote that the DigiTrust URL may change from time to time, check with them for the latest.
For example, store this code in a new file called digitrustInit.js:
DigiTrust.initialize({
member: "PUBLISHER_DIGITRUST_MEMBER_ID",
site: "PUBLISHER_DIGITRUST_SITE_ID",
redirects: true
},
function (digiTrustResult) {
if (typeof digiTrustResult === 'object' && digiTrustResult.success) {
pbjs.setConfig({digiTrustId: digiTrustResult});
}
}
);Notes:
The DigiTrust code must be loaded first, so prepend the digitrust files to the top of the Prebid build file.
cat digitrust.js digitrustInit.js build/dist/prebid.js > build/dist/prebid_digitrust.jsThe combined Prebid/DigiTrust file is now ready to follow your normal acceptance process.