/Documentation

Transfer consent status from Shopify storefront to checkout

Updated Aug 10, 2026

Spot the problem

Enabling injection in Stape GTM Helper Chrome extension
Cookie statuses
Status "Denied" as the default and current status
Adding "Consent Mode (Google + Microsoft tags)" to workspace
Setting "Consent Mode (Google + Microsoft tags)" as tag type
Consent Command "Update" selected
Cookie that contains the consent status in browser console
Cookie value in browser console
function() { var data = (function () { var m = document.cookie.match(/_iub_cs-[^=]+=([^;]+)/); if (!m) return null; try { return JSON.parse(decodeURIComponent(m[1])); } catch(e) { return null; } })(); if (!data) return 'denied'; // iubenda: Marketing = 5 return data.purposes && data.purposes["5"] === true ? 'granted' : 'denied'; }
Variable config in GTM
"Push dataLayer Event" checkbox
Begin checkout trigger config
Purchase trigger config
"Consent Mode (Google + Microsoft tags)" tag configuation

Step 2. Update triggers for tags that fire on the checkout page

Consent update trigger config
Begin checkout trigger config
Create a trigger group in GTM

Step 3. Test the configuration

"begin_checkout_stape" event
Checkout tags fired on the "Trigger Group"
Updated consent statuses

Was this article helpful?

Comments

Can’t find what you are looking for?