In a support thread titled ‘Tips for using OneTrust with Discourse?’, bartv asks for advice on implementing OneTrust for GDPR compliance, noting the script installation seems straightforward. david shares that they successfully added the OneTrust script via a theme component’s </head> section, but cautions that it doesn’t alter or block cookies set by Discourse itself. bartv acknowledges this as a potential issue and plans to consult their team.
My employer is implementing OneTrust across all their websites in order to comply with GDPR regulations. Installation appears to be easy enough, but I wondered if anyone here has done this before and if they could share any tips or things to avoid.
We have had success simply including the OneTrust script in the </head> section of a theme component. Note that, as far as I know, adding OneTrust’s script won’t actually stop/change any of the cookies which Discourse sets.