GTM Template: Consent String Parser
This GTM Variable Template for Server-Side will allow you to semassly parse the &gcd parameter into a human-readable format, allowing you to use the
Rather than having it based on a lookup table, it properly implements a bits reading to extract the current consent state, manking this fail-proof in a future.
One use could be for example mapping the parsed consent state to a dimension to the events.
Let's check how to do it, first of all grab the template for github: https://github.com/analytics-debugger/gtm-template-server-side-google-consent-parser or wait until Google approves it to the Community Template Gallery
We need to add this a Variable type template and then we can add a new variable to our container

We'll need to create a variable for each of the consent category we want to report.
You don't need to setup anything else, the template will take care of grabing the &gcd
parameter from the incoming request itself.

The we could use this variable to map the variable to a custom dimension on our events, or maybe mapping this value to some other pixel.

