Hi,
We’re running Stape sGTM setup with Cookiebot as our CMP. Google Consent Mode is setup in web container. Data is sent to the server container via both a GA4 config tag and Stape’s Data Tag (with ‘Add consent state’ enabled) and Data Client. The web container Data Tag itself has no consent conditions and so fires unconditionally. Our various server tags/triggers are conditioned for consent checks based on this.
We’ve noticed that the _dcid cookie is being set by the Data Client even when a user rejects all non-essential cookies. We do believe this has GDPR compliance issues. This seems to happen because the Web GTM Data Tag fires unconditionally and the Server GTM Data Client generates a client ID (and sets _dcid) when none is present in the request.
We do want the _dcid cookie to be generated and set in cases where a client ID is missing for reasons other than consent rejection — e.g. expired cookies, or Safari ITP resets. So simply disabling ‘Generate Client ID’ in the Data Client settings does not seem like a great solution.
On the other hand, we also would still want to support Advanced Consent Mode. So simply adding ad_storage and analytics_storage conditions to the web container Data Tag doesn’t seem viable either.
Stape adding a consent condition setting to the client id generation option in the Data Client would be great!
But maybe i’m missing something in my logic here? Or maybe there is some other great approach for this?
Any recommendations?