Forum Discussion

Inactive User's avatar
Inactive User
4 years ago

OneTrust Cookies Consent

Hi, has anyone yet used OneTrust to add Cookie Consent to a Khoros Community ?

If yes, what was the process to make that work ?

  • Looking for feedback on this as well, as it's on the roadmap for one of my communities. Is it as simple as adding the OneTrust scripts to the head object on the site?

  • TrippB's avatar
    TrippB
    Khoros Alumni (Retired)

    Hi all, so most of the work is done in One Trust. Your One Trust account representative should be able to help you with the configurations that need to happen in One Trust.

    A One Trust javascript script is then added to the community. You can then do some light styling on the One Trust banner to match your brand guidelines.

  • OneTrust has test & production environments and uses different scripts for each. Any guidance on how that can be implemented in Khoros  - i.e. using one script on Khoros staging and a different one in Production?

    We are planning on injecting the script objects into the HTML <head> using the "wrapper" of the skin we are using on our site.

    • TrippB's avatar
      TrippB
      Khoros Alumni (Retired)

      abeshey_bpc , that's no problem. There are a couple of different ways that you can differentiate between stage and prod and ensure that the correct code snippet is used in each case.

      The simplest approach would be something like this:

      <#if config.getString("phase", "prod") == "stage">
          ... YOUR STAGE ONE TRUST SNIPPET HERE ...
      <#else>
          ... YOUR PROD ONE TRUST SNIPPET HERE ...
      </#if>