OneTrust Consent Groups

Community variable by taneli-salonen1

What is OneTrust Consent Groups?

Returns the OneTrust (Optanon) consent groups. Can be used with setting up triggers for tags.

OneTrust Consent Groups variable is created by taneli-salonen1. Once you set up server side tagging with MetricsGate, you can use this variable with Google Tag Manager to enhance your data analytics.

This variable template is part of an open-source community, with its source code accessible on Github, and its documentation can also be found online.

You can check its version history below:

  1. Added option to return individual consent statuses in consent mode format, granted or denied.
  2. Support for reading vendor and host consent from the cookie.
  3. Support for returning a selected consent group's status.
  4. Initial release.

More tags and variables supported

Tags

Variables

Join early adopters globally and leverage server-side tagging, GA4 custom events, and cookieless tracking to gain deeper insights and enhanced analytics data about your visitors!

Get Started now