Setting up Sourcepoint’s CMP solution is a simple process that publisher teams can get up and running quickly. This document is a quick start guide on how to get consent messages displaying on your site using Sourcepoint’s JS code-snippet. The JS code-snippet needs to be placed on your site, preferably in the header tag of your site. Sourcepoint’s script has been built and optimized for high performance and fast delivery. Please be aware that this setup would likely change for delivering adblock messages. This guide provides details on simply getting consent messages displayed on your site.
Implementation can be divided into two steps:
Setting up the messaging domain
Please read through the content below regarding each of these implementation steps and feel free to reach out to your Sourcepoint account manager with any questions you may have.
The code-snippet consists of 3 script tags:
1. The first section of the tag is the Stub script. This sets up the iAB consent object “__cmp” and makes it available on queue to be called and released when needed. It is important to have this script tag always at the top in the first position to avoid errors and failure of the service.
a. accountId – This is set to the account id you receive from your Sourcepoint account manager - The id associates your data and site up to the publisher account in the Sourcepoint user interface.
b. cmpOrigin - 'https://sourcepoint.mgr.consensu.org' where the Sourcepoint CMP lives. Keep as is.
c. mmsDomain - 'https://mms.sp-prod.net' can be changed to a CNAMED subdomain in order to deliver 1st party cookies on Safari web browser (due to Safari’s ITP). Changing the mmsDomain is optional! More information about setting up an mmsDomain below.
Other optional params:
d. siteHref – maps the message to a specific URL
e. privacyManagerId – forces a specific privacy manager to be allocated for that message
f. waitForConsent – a Boolean that when is set to true disables interaction with the page until a user has given consent
g. siteId – maps the message to a specific property (website, app, OTT)
3. The Messaging JavaSript Library script: This calls our messaging library and hosted on our servers and is what finally delivers the message.
Once you have created the CNAME record, please inform your Sourcepoint Account manager so that they can create an SSL certificate for the subdomain. This will ensure that both secure and non-secure traffic are handled properly. We also included additional information on how to leverage our key-value pair targeting features and our data callbacks. Key-value pairs are used to create highly targeted messages based on data points from external systems like DMPs and CRM platforms. Our callbacks can be used to set cookie values based on the messages a user have seen and to send data to external systems such as website analytics platforms and/or DMPs.