onetrust
Reactive icon

One Trust - Cookie Consent

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 08 November 2023
 by 
5.0
 (1 rating)
onetrust

One Trust - Cookie Consent

Details
Load the Cookie Consent from One Trust in your application.
Read more

It is a block that loads the Cookie Consent scripts from One Trust in your application.


One Trust Scripts:

<!-- OneTrust Cookies Consent Notice -->

<script type="text/javascript" src="https://cdn.cookielaw.org/consent/XXXXXX/OtAutoBlock.js" ></script>

<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" data-document-language="true" type="text/javascript" charset="UTF-8" data-domain-script="XXXXXX" ></script>

<script type="text/javascript"> function OptanonWrapper() { } </script>

<!-- OneTrust Cookies Consent Notice -->


Cookie Preferences Button:

<!-- OneTrust Cookies Settings button -->

<button id="ot-sdk-btn" class="ot-sdk-show-settings">Cookie Settings</button>

<!-- OneTrust Cookies Settings button -->


  • You can define:
    • Your domain through a Site Property.
    • If you want to add the Cookie Preferences button or not.
    • To which widget the button will be added.
    • Give style to the button to override the style from One Trust.


Obs 1: If your environment has the CSP active it is also necessary to configure to be able to load the scripts. Here are the configurations necessary:

  • Connect-src
    • https://cdn.cookielaw.org/
    • https://geolocation.onetrust.com/
    • https://privacyportal.onetrust.com/
  • Img-src
    • https://cdn.cookielaw.org/
  • Script-src
    • https://cdn.cookielaw.org/ 


Obs 2: You need to configure the content in One Trust.

Release notes (1.0.0)
License (1.0.0)
Reviews (0)
Team
Other assets in this category