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.
Instructions for adding DigiTrust code to a Prebid package
Step 1: Prepare the base Prebid file as usual
The standard options:
- Build from a locally-cloned git repo
- Receive the email package from the Prebid Download page
Step 2: Download the DigiTrust code:
Note that the DigiTrust URL may change from time to time, check with them for the latest.
Step 3: Combine the DigiTrust code and Prebid
The DigiTrust code must be loaded first, so prepend the digitrust.js file to the top of the Prebid build file.
Step 4: Append the following code to the end of the file:
- you’ll need replace the placeholders PUBLISHER_DIGITRUST_MEMBER_ID and PUBLISHER_DIGITRUST_SITE_ID.
- the ‘redirects’ option to DigiTrust.initialize() may be set to false in order to disable the link-rewriting behavior to acquire a first party cookie context.
Step 5: Publish
The combined Prebid/DigiTrust file is now ready to follow your normal acceptance process.