Admin access or Domain access to property (property group) with feature access to message/scenario partition set management

The privacy manager JavaScript code is a snippet that is added to a property and allows an end-user to resurface a privacy manager. Using this link/button, end-users can directly manage their consent preferences on an ongoing basis without having to re-encounter your organization's first layer message. 


Create privacy manager JavaScript code

Click Messages on the left-hand panel and select a regulatory regime (GDPR Messages or CCPA Messages).

Click Web/Webview from either subsequent menu.

  Note: When selecting a message for the GDPR regulatory regime, you will have the option to select either a Web/Webview message for either TCF or Standard.

Screen_Shot_2021-10-27_at_12.45.19_PM.png

Use the property field in the upper right-hand corner to select a property for which you will resurface a privacy manager.

Screen_Shot_2021-10-27_at_12.48.20_PM.png

Click the Privacy Manager tab and locate the ID for a privacy manager on the subsequent list. 

Screen_Shot_2021-11-05_at_3.44.25_PM.png

The privacy manager JavaScript code uses a loadPrivacyManagerModal function to pass the specific privacy manager ID.

The format of the JavaScript code depends on the regulatory framework to which the privacy manager belongs. Please see the table below for the appropriate formatting:

  Note: If resurfacing a GDPR TCF/Standard privacy manager, you can also pass the tab that should be opened upon resurfacing. The tabs that can be passed to the function are:

Parameter Description
purposes Opens the user consent tab under purposes upon resurfacing the privacy manager.
vendors Opens the user consent tab under vendors upon resurfacing the privacy manager.
features

Opens the features tab upon resurfacing the privacy manager.

Note: Available for GDPR TCF only. 

purposes-li

Opens the legitimate interest tab under purposes upon resurfacing the privacy manager. 

Note: Available for GDPR TCF and GDPR Standard only. 

vendors-li

Opens the legitimate interest tab under vendors upon resurfacing the privacy manager.

Note: Available for GDPR TCF and GDPR Standard only. 

GDPR TCF/Standard CCPA
window._sp_.gdpr.loadPrivacyManagerModal(GDPR_PM_ID, 'purposes')

window._sp_.gdpr.loadPrivacyManagerModal(GDPR_PM_ID, 'vendors')

window._sp_.gdpr.loadPrivacyManagerModal(GDPR_PM_ID, 'features')

window._sp_.gdpr.loadPrivacyManagerModal(GDPR_PM_ID, 'purposes-li')

window._sp_.gdpr.loadPrivacyManagerModal(GDPR_PM_ID, 'vendors-li')

Implement privacy manager JavaScript code

Attach the privacy manager JavaScript code to an event handler on your property. Most organizations who implement the JavaScript code on their page will attach the function to the onclick event of a page element.

GDPR TCF/Standard CCPA
<button onclick="window._sp_.gdpr.loadPrivacyManagerModal(123456, 'vendors')">Privacy Manager GDPR</button>

Call window._sp_.gdpr.loadPrivacyManagerModal() without passing a parameter and the property's group privacy manager as specified by groupPmId will display to the end-user:

<button onclick="window._sp_.gdpr.loadPrivacyManagerModal()">Privacy Manager GDPR</button>
Was this article helpful?
0 out of 0 found this helpful