U.S. Multi-State Privacy (Standard) implementation guide (web)

Sourcepoint offers messaging capabilities for multiple regulatory and non-regulatory frameworks. These messages are surfaced to your end-users in accordance with the campaigns (and scenarios) that you enable for the property.

In this article, we will walk you through the essential steps to launch your U.S. Multi-State Privacy (Standard) messaging campaign on your web property.


Overview

Sourcepoint offers two different frameworks that can be used for U.S. Multi-State Privacy messaging campaigns:

  • National (IAB)
  • Standard

These frameworks are defined on a per vendor list basis with each framework sharing the same workflow for message, scenario, partition set, and campaign workflow. Click here to review the different frameworks available.

Screenshot 2023-12-08 at 11.00.49 AM.png


Portal configuration

Use the table below to track the necessary configurations that need to be performed within the Sourcepoint portal before adding the required code onto the property and launching your U.S. Multi-State Privacy (Standard) campaign.

  Note: There are certain optional steps/configurations that are not represented in this tracker such as property groups, dynamic language support, etc...

Step Resource(s)
1 Create new property
2 Create U.S. Multi-State Privacy (Standard) vendor list
3 Edit U.S. Multi-State Privacy (Standard) vendor list
4 Create U.S. Multi-State Privacy privacy manager
5 Create U.S. Multi-State Privacy first layer message
6 Create U.S. Multi-State Privacy scenario
7 Create U.S. Multi-State Privacy partition set

Install U.S. Multi-State Privacy (Standard) Sourcepoint code on property

When you have completed the portal configuration for your property, click Properties on the left-hand panel and select Properties from the subsequent menu.

Screen_Shot_2021-10-25_at_9.26.56_AM.png

Click <> inline with the property name.

Screen_Shot_2023-01-23_at_10.17.49_AM.png

Use the Campaign Type dropdown menu to select U.S. Multi-State Privacy and select the US Standard toggle.

The implementation code snippet will automatically populate in the provided space.

Click Copy Code and add the implementation code snippet to your property. 

  Note: Click here for best practices on how to implement the Sourcepoint implementation code snippet to optimize message loading time.

Screenshot 2024-11-11 at 9.03.44 AM.png

The Sourcepoint U.S. Multi-State Privacy (Standard) implementation code snippet is comprised of two scripts. Review the sections below for additional information and possible configuration options to suit your organization's use cases.

Complete Example
 <script>
    window._sp_queue = [];
    window._sp_ = {
        config: {
            accountId: 22,
            baseEndpoint: 'https://cdn.privacy-mgmt.com',
            usnat: {
                includeGppApi: false
             },
            events: {
                onMessageChoiceSelect: function() {
                    console.log('[event] onMessageChoiceSelect', arguments);
                },
                onMessageReady: function() {
                    console.log('[event] onMessageReady', arguments);
                },
                onMessageChoiceError: function() {
                    console.log('[event] onMessageChoiceError', arguments);
                },
                onPrivacyManagerAction: function() {
                    console.log('[event] onPrivacyManagerAction', arguments);
                },
                onPMCancel: function() {
                    console.log('[event] onPMCancel', arguments);
                },
                onMessageReceiveData: function() {
                    console.log('[event] onMessageReceiveData', arguments);
                },
                onSPPMObjectReady: function() {
                    console.log('[event] onSPPMObjectReady', arguments);
                },
                onConsentReady: function (consentUUID, euconsent) {
                    console.log('[event] onConsentReady', arguments);
                },
                onError: function() {
                    console.log('[event] onError', arguments);
                },
            }
        }
    }
</script>
<script src="https://cdn.privacy-mgmt.com/unified/wrapperMessagingWithoutDetection.js" async></script>

Client configuration script

The client configuration script contains your organization's specific account configuration parameters. This configuration includes the necessary and optional parameters for your property to communicate with the Sourcepoint messaging platform and consent service libraries.

Currently, there are four required properties to successfully deliver an end-user notification:

  Note: Use either propertyHref or propertyId in your client configuration script. 

Required Property Data Type Description
accountId Number The accountId value associates the property with your organization's Sourcepoint account. Your organization's accountId can be retrieved by contacting your Sourcepoint Account Manager or via the My Account page in your Sourcepoint account.
baseEndpoint String

A single server endpoint that serves the messaging experience.

  • For GDPR TCF, U.S. Multi-State Privacy, U.S. Privacy (Legacy), GDPR Standard, and Custom Messaging, the baseEndpoint is https://cdn.privacy-mgmt.com.

  Note: The baseEndpoint can also be changed to a CNAME first-party subdomain in order to persist first-party cookies on Safari web browser (due to Safari’s ITP) by setting cookies through the server with set-cookie rather than using document.cookie on the page.

propertyHref String

Maps the implementation to a specific URL as set up in the Sourcepoint account dashboard. Use propertyHref to spoof messaging campaigns onto a local environment for testing or debugging.

  Note: When a campaign is ready to launch publicly to your end-users, we recommend that you replace propertyHref with the more efficient propertyId parameter. Click here for more information on working with propertyHref.

propertyId Number

Maps the message to a specific property set up in the Sourcepoint portal. Use propertyId instead of propertyHref when launching your campaign to end-users publicly.

usnat Object

Campaigns are surfaced on your property by adding campaign objects to your configuration. The includeGppApi property must be included in the usnat object and set to false

In addition to the required parameters (above), your organization can further implement additional parameters and customizations in the code snippet for different use cases. Follow the resources below for additional information

<script>
window._sp_queue = [];
window._sp_ = {
    config: {
        accountId: 12123,
        baseEndpoint: 'https://cdn.privacy-mgmt.com',
        propertyHref: 'https://testdemo.com',
        usnat: {
            includeGppApi: false
         }
    }
}
</script>

URL to messaging library

The final script is a URL that points to Sourcepoint's messaging libraries. The default URL is as follows:

Campaign(s) Description
  • U.S. Multi-State Privacy

https://cdn.privacy-mgmt.com/unified/wrapperMessagingWithoutDetection.js'

This script only needs to be included once regardless of how many different types of messaging campaigns you run on the property.

  Note: If your organization has edited the baseEndpoint with a CNAME DNS record you will also need to edit the URL. Please follow the following format if necessary:

https://cname.subdomain/unified/wrapperMessagingWithoutDetection.js

In the developer console, the URL to the messaging library can return the following regardless of whether a message was shown to the user:

Console Description
Messaging without detection successfully executed The script, messaging without detection, has successfully fired. It does not indicate that a message was shown to the end-user.
interaction complete The interaction with our, messaging without detection script, has concluded. It does not indicate that an end-user interacted with a message.  

Screen_Shot_2022-02-03_at_9_09_55_AM.jpg


Install resurface privacy manager code on property

Many organizations will want to add a button/link onto their web property that allows an end-user to resurface the privacy manager so they can manager their privacy choice preferences on an ongoing basis.

Typically, the JavaScript code on their page will attach the function to the onclick event of a page element. Click here for more information on how to retrieve the privacy manager ID and implement the JavaScript code.


U.S. Multi-State Privacy (Standard) API

In addition to the U.S. Multi-State Privacy (Standard) Sourcepoint code that is added to your property, your organization can leverage Sourcepoint designed APIs to further customize and test your implementation. Information on the available commands can be found in our developer hub:

U.S. Multi-State Privacy (Standard) API


Launch campaign

With the property configured in the portal and Sourcepoint's implementation code snippet added to the web property, your organization can now launch a U.S. Multi-State Privacy (Standard) campaign on the property and test the end-user flow.

Step Resources
Launch U.S. Multi-State Privacy campaign
Test end-user privacy choice flow 
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.