Consent Parser Variable template for sGTM Container - Bug?

Hey, I’m not sure if it’s a bug or not, but the Consent Parser Variable template started parsing wrong.

Example: page view with consent parameters sent:

image

sGTM debug:

It looks like instead of getting the consent data in the variable there’s an 404 error in the response.

Either I don’t understand what’s going on either this seems to me like a really urgent situation.

Anyone with the same issues?

BTW: response if I visit the page directly below. It looks like Stape needs to use another parser?

Hi @bosstjan, it seems that the original maintainer of the Consent Mode Parsing API removed it without warnings. We’ll reach out to them.

Meanwhile, you can use Tag Manager Template Gallery or GitHub - dpezrez/gtm-consent-state: GTM server-side variable template that decodes the Google Consent Mode gcd parameter and returns a single consent signal as a string, boolean or number. · GitHub.

Yes, I just read that David stopped with this project & subdomain so I guess you need to work on the replacement :frowning:

The main issue is that I need a really quick fix. We have quite a lot clients depending on this. I’ll check other templates for now.

@bosstjan, it’s back online.

See David’s reply on LinkedIn.

We’ll consider adding some updates to it to make it easier to use, like accessing a specific consent value.