Google Tag Manager
Data Layer
UPCP emits a data layer that contains the subjects privacy choices. The data layer is an item in the array window.dataLayer, with the "event": "consent-status"
{
"event": "consent-status",
"type": "explicit",
"gpc": false,
"doNotSell": false,
"doNotShare": true
}
Key | Value | Description |
---|---|---|
event | consent-status | |
type | implicit | explicit | If the subject make a passive choice, such as setting their GPC signal, then 'implicit'. |
gpc | true | false | True if GPC signal is enabled, else false |
[consent] | true | false | Each privacy choice will have a key, and will resolve to a boolean value. The privacy choices are defined in the JavaScript configuration. |
Updated 19 days ago