Configure the Relevance Module's Tracking Cookie Policy

Overview

This page explains how to configure the Relevance Module in Bloomreach Content to support visitor consent for tracking. You can allow visitors to opt in or opt out of tracking, and control how the tracking cookie behaves.

When to Use

Configure the tracking cookie policy to comply with privacy regulations, such as the EU "Cookie Law", or to provide visitors with control over tracking by the Relevance Module.

Prerequisites

Configuration Options

The Relevance Module uses a cookie to track visitors and collect data for Personalization, Experiments, and Trends features. You can configure the tracking cookie policy using the following properties on the /targeting:targeting node:

NameTypeDefaultDescription
targeting:consentCookieEnabledBooleanfalseIf false, all visitors are tracked and cannot opt out.
targeting:consentCookieNameStringName of the cookie that controls tracking.
targeting:consentCookieValueStringValue to compare against the cookie's contents.
targeting:consentCookieOptInBooleanIf true, tracking is allowed only if the cookie exists and its value matches consentCookieValue. If false, tracking is allowed unless the cookie exists and its value matches consentCookieValue.

For brXM 12.1 and later, you can also configure the tracking cookie's expiration:

NameTypeDefaultDescription
targeting:visitorCookieMaxAgeLong63072000Number of seconds until the tracking cookie expires. The default is 2 years.

Important: Reducing the cookie retention period may limit the usefulness of collected relevance data.

For additional cookie configuration options, see Visitors, Visits, and Cookies.

Example Configurations

Track all visitors without asking for consent:

/targeting:targeting: targeting:consentCookieEnabled: false

Allow visitors to opt out of tracking (opt-out model):

/targeting:targeting: targeting:consentCookieEnabled: true targeting:consentCookieOptIn: false targeting:consentCookieName: visitortracking targeting:consentCookieValue: disallowed

Allow visitors to opt in to tracking (opt-in model):

/targeting:targeting: targeting:consentCookieEnabled: true targeting:consentCookieOptIn: true targeting:consentCookieName: visitortracking targeting:consentCookieValue: allowed

Change the tracking cookie expiration to 90 days (instead of the default 2 years):

/targeting:targeting: targeting:visitorCookieMaxAge: 7776000

Verification

After updating the configuration:

  1. Test the visitor experience to confirm that tracking behavior matches the configured policy.
  2. Verify that the consent cookie is set and read according to your implementation.
  3. Confirm that the tracking cookie expires as configured.
Share Feedback
Page: /build/enterprise-plugins/targeting-relevance/configure-relevance-tracking-cookie-policy
Section: Build
Category *
Configure the Relevance Module's Tracking Cookie Policy | Bloomreach Content Documentation