Update time: July 18, 2023
The effect is: when the user refuses, AA will not track, and when the user agrees, AA will track.
What is Trust Arc
TrustArc Inc. (formerly TRUSTe) is a privacy compliance technology company based in Walnut Creek, California. The company provides software and services to help corporations update their privacy management processes so they comply with government laws and best practices
Trust Arc will send multiple events through dataLayer.push when the user refuses or agrees, and will write the user authorized information into the cookie cmapi_cookie_privacy, including 2 means that AA tracking is allowed.
There is an event cookie_prefs_set that is sent after the user authorization information is written into the cookie, so you can use the event cookie_prefs_set and cookie cmapi_cookie_privacy to set:
- For the first page: trigger is event cookie_prefs_set, and cookie cmapi_cookie_privacy contains 2
- For other pages or event: Add one more condition to Rules, and trigger if cmapi_cookie_privacy contains 2.
The current PageView configuration is:
The first step is to install Google Data Layer in Extensions:
Google Data Layer nam does not need to be modified. The function of this step is to enable Adobe Launch to trigger the cookie_prefs_set event.
The second step is to add one more EVENT in the rule of Page View, the configuration is as follows:
The role of this configuration is to trigger when the user first visits and agrees.
The effect after configuration number EVENTS:
The third step is to configure in the condition, and only when cmapi_cookie_privacy contains 2 is triggered, do the following configuration:
Note: Regex needs to be checked.
The function of this configuration is: only the information agreed by the user in the cookie can be tracked by AA.
The final effect:
All events need to configure a Cookie cmapi_cookie_privacy contains 2 in CONDITIONS to be triggered.