Consent Parser Variable for Google Tag Manager Server Container
https://stape.io โ// momentum
// why it's here
- Active: last commit today
- Health 65/100 with only 6 stars
// how to help
// readme
Consent Parser Variable for Google Tag Manager Server Container
Returns the consent state of a request in the server container. It decodes the Google Consent Mode gcd or gcs string, or reads the consent_state sent by the Data Tag. Decoding runs in the template, with no external requests.
Consent sources
Pick the source in the Consent Source field:
- Google Consent Mode gcd (default): reads the
gcdorx-ga-gcdEvent Data, or thegcdquery parameter. Returns thedefaultandupdatestate ofad_storage,analytics_storage,ad_user_dataandad_personalization(granted,deniedor-when not set), plusallow_ad_personalization_signals(true,falseornull) andglobal_privacy_control(opted-outornull). An invalidgcdreturns{"code": 400, "type": "error", "message": "invalid consent mode string"}, and nogcdreturns an empty object. - Data Tag consent_state: reads the
consent_stateEvent Data sent by the Data Tag with the Add consent state option on. Returns an object with each consent type asgranted,denied, or-when not set.