Implement Tracking Cookie Consent
Implement a cookie consent pop-up to let website visitors opt in to tracking by the Relevance Module.
The Relevance Module 'tracks' site visitors using a cookie and stores data gathered about visitors. The module's Personalization, Experiments, and Trends features make use of those data.
To comply with local legislation (for example, the EU "Cookie Law"), it may be required to allow website visitors to opt-out (or explicitly opt-in) of the kind of tracking performed by the Relevance Module. This behavior can be enabled through configuration and relies on the visitor's preference being stored in a cookie.
In bootstrap/webfiles/src/main/resources/site/freemarker/common/base-layout.ftl, just before the </head> closing tag, add the following:
Now, any visitor entering the site for the first time will see a "pop-up bar" containing a message about tracking cookies and an "Accept" button to opt in. The visitor's preference will be stored in a cookie named cookieconcent_dismissed, with value yes. No tracking will take place until the visitor has clicked the "Accept" button.
Using the Console, browse to the node /targeting:targeting.
Add the following properties to enable cookie consent with opt-in and match the cookie name and value set by the script:
/targeting:targeting - targeting:consentCookieEnabled = true - targeting:consentCookieOptIn = true - targeting:consentCookieName = cookieconsent_dismissed - targeting:consentCookieValue = yes