Audience Logic allows you to define attributes and logic to deliver a specific CMP experience to your applications’ visitors. You can configure the Audience Logic using Geolocation Rules.
Note
Audience Logic is only available for use with the Consent Rate Optimization add-on. To enable Consent Rate Optimization, contact OneTrust Support.
To configure the Audience Logic
-
On the menu, select . The Geolocation Rule Groups screen appears.
-
Select a geolocation rule group from the list. The Geolocation Rule Group Details screen appears.
-
Select the Use Audience Logic checkbox to enable Audience Logic.
-
Enter a name and define the logic for your condition.
-
Click the Save button. Your Audience Logic condition displays.
Tip
A limit of five audience logic conditions per geolocation rule is recommended to maintain optimal performance.
Each condition has its own set of geolocation configurations. Else configurations will load if the Audience Logic condition is not met or is unknown.
Example Configuration: GPC
When the Global Privacy value is TRUE, the condition will be hit.
If TRUE:
You can leverage the following code in the JavaScript entry field to load your configurations for the GPC condition:
navigator.globalPrivacyControl
If Else (FALSE/undefined):
Example Configuration: Mobile Devices
Present the end user with a different CMP experience when the browser user agent is in the defined mobile device list.
You can leverage the following code in the JavaScript entry field to load your configurations for the mobile condition:
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
-
When consent logging is enabled, a collection point will be created per condition. You cannot use the field to write a cookie or a variable.
-
Any browser values or custom variables must be available prior to the variable when using Audience Logic.
-
Audience Logic is not currently compatible with our CSP feature.
-
A limit of five audience logic conditions per geolocation rule is recommended to maintain optimal performance.