Integrating Privacy Notices with WordPress

The first time you publish a notice, an integration code snippet will be generated that allows you to implement the notice across your sites. WordPress privacy notice configuration uses plain HTML code and cannot accept JavaScript code.

To integrate a privacy notice with WordPress

  1. On the Privacy Notice Management menu, select Privacy Notices. The Privacy Notices screen appears.
    Note:

    If you own the Policy Management module, the menu will be named Policy.

  2. Select the notice you want to integrate. The Privacy Notice Details screen appears.

  3. Navigate to the Integration tab. The SDK appears to integrate the policy notice.


  4. Click the Copy button for the code snippet for your notice.
    Note:

    The Published Notice SDK should be copied when publishing to a live site. The Draft Notice SDK should be copied when testing a notice in a staging environment.

  5. Navigate to the WordPress privacy notice configuration space and paste the code.
    Note:

    When the OneTrust privacy notice code is placed in the WordPress policy configuration space, it sanitizes JS and the code appears as shown below:

  6. Remove the JS script portion of the code by using the cut function. Only the div id should remain.


  7. Paste the JS script portion of the code to the head section under the header.php section.


  8. Save and preview your changes. The privacy notice should be visible.