How to Set Up Stape’s Consent Management Platform (CMP)

Stape now ships a full consent management platform inside your server GTM container, at no extra licence fee. Setting it up takes six steps: integrations, privacy details, cookie scan, banner design, settings and localization, then a few changes in web GTM. This guide walks through each step, which toggles matter, and how to prove it works before you go live.

Consent is now a tracking problem, not just a legal one

Picture a typical European ecommerce store. The legal team signed off on a cookie banner years ago. Then Google Ads starts warning about missing consent signals for EEA traffic, Clarity recordings from Europe suddenly look thin, and nobody can say whether the banner actually controls the tags.

That’s the situation we walk into most often. The banner exists, but it isn’t wired into the tracking stack.

The pressure comes from the platforms as much as from regulators:

  • Google: to keep using measurement, ad personalization and remarketing for EEA users, you must collect consent and pass consent signals to Google (Google Ads Help).
  • Microsoft Clarity: since October 31, 2025, Clarity enforces consent signals for visits from the EEA, UK and Switzerland (Microsoft Learn).
  • US states: at least California and Colorado treat a Global Privacy Control (GPC) browser signal as a legally binding opt-out (W3C GPC explainer).

A CMP that sits inside your server-side setup closes that gap. Here’s how to set up Stape’s.

What Stape CMP is, and why it lives in your sGTM container

Stape CMP is a full consent management platform built into Stape’s server-side tracking infrastructure (Stape: CMP overview). The banner script is delivered through Custom Loader from your own domain, so consent becomes part of the same stack that runs your tags.

Three things make it different from a standalone CMP:

  • Cost. There is no separate CMP licence. Each CMP script load counts as one Stape request against your plan, and it’s available from the free plan up (Stape: How CMP is billed).
  • First-party delivery. Because the script is served from your domain, Stape says it is harder to block than a typical third-party CMP script (Stape CMP).
  • One place to manage. Banner, consent logs, regional rules and server-side tracking all live in the same Stape account.

Stape lists GDPR, CCPA, CPRA, VCDPA, LGPD and POPIA as supported regulations. A tool is not compliance on its own, though. Your configuration, your disclosures and your tag setup still decide whether you’re compliant.

Before you start

You need three things in place (Stape: How to set up Stape CMP):

  • An active Stape account.
  • A server GTM container hosted on Stape.
  • The Custom Loader power-up activated and installed on the site. This is not optional: the CMP script is served through it.

We’d add two more items to that list from experience:

  • A published privacy policy page. You’ll need its URL in Step 2.
  • A list of every tag on the site, including anything hardcoded in the theme. The CMP can only control what it knows about.

To get started: log in to Stape, open the sGTM container, go to the CMP tab, click Add CMP, enter the domain where the banner should appear and click Create CMP.

Step 1: Integrations and consent signals

This is the most important screen in the setup, because it decides which tools hear about consent. Turn on only what the site actually uses.

ToggleWhat it doesTurn it on when
Google Consent Mode v2Sends consent signals to Google tags so they adjust behaviourYou run GA4, Google Ads or other Google tags
Push dataLayer eventPushes stape_cmp_consent_default and stape_cmp_consent_update with each category’s statusYou use GTM triggers or scripts that don’t read Consent Mode natively (Meta, TikTok, Pinterest, custom HTML)
Delete cookies on withdrawalRemoves cookies, localStorage and sessionStorage for denied categories, on every page load and on preference changeYou want withdrawn consent to actually clear stored IDs
Shopify Customer Privacy APISyncs choices with Shopify’s privacy settingsThe site runs on Shopify
In-page blockingHolds tagged scripts until the right category is grantedScripts are hardcoded in the HTML or loaded outside GTM
Microsoft Consent (UET & Clarity)Passes analytics and ads consent to Clarity and UETYou use Clarity or Microsoft Ads
IAB TCFStandardised consent signals for ad vendorsYou run programmatic ads or vendors require TCF
IAB GPP (US opt-out)Stores and passes US opt-out signals via GPPYou’re subject to US state privacy laws and need standardised opt-out signalling

Notes on the toggles that trip people up

Google Consent Mode v2. Since v2, Google expects two extra signals beyond ad_storage and analytics_storage: ad_user_data (sending user data to Google for ads) and ad_personalization (personalised ads) (Google Tag Manager Help). ad_user_data is also required for measurement use cases such as enhanced conversions (Google Ads consent mode reference). If you run Enhanced Conversions, this toggle matters.

Push dataLayer event. Google tags respond to Consent Mode on their own. Most other vendors don’t. If Meta, TikTok or LinkedIn tags fire in GTM, enable this so you can build triggers on the CMP events.

Delete cookies on withdrawal. It only clears entries listed in your cookie inventory. It cannot delete HttpOnly cookies or cookies set by other domains, so server-set cookies from sGTM won’t be removed this way.

Shopify Customer Privacy API. Shopify uses this API to apply consent to its own surfaces, including pixels and checkout (Shopify: Cookie banner). That’s why the sync matters: without it, Shopify’s Customer Events pixels can disagree with your banner. Stape also says to turn off “Rely on Shopify Customer Privacy API consent states” in its Conversion Tracking app and to switch that domain to Custom Loader mode.

Microsoft Consent. Clarity enables Consent Mode by default for visitors from the EEA, UK and Switzerland and only sets cookies once valid consent arrives (Microsoft Learn: Clarity Consent Mode). Stape notes that for those visitors Clarity collects only cookieless data until consent is granted.

IAB GPP. GPP is the IAB Tech Lab’s standard for passing US privacy signals to ad tech, and its US National section applies one common standard across states instead of handling each separately (Usercentrics: GPP). Google doesn’t require GPP; it’s one of several ways publishers can support US state law compliance (Google AdSense Help). Enable it if your ad partners ask for it.

Click Save and continue.

Step 2: Add privacy details

These fields appear in the banner so visitors know who is collecting data and how to reach you.

  • Privacy policy URL. Publish the policy before you fill this in.
  • Organization and Address. Your legal business name and address.
  • Privacy contact details. An email or form visitors can use for data requests.
  • Displayed contact role. A label such as “Data Protection Officer” or “Privacy Team”. If you don’t have a DPO, use “Privacy Contact”. The label is set per banner language.
  • Show Google privacy link. Adds a link to Google’s privacy information next to your policy. Worth enabling if you run GA4 or Google Ads. It is not shown on TCF banners.

Step 3: Review the cookie scan

Stape scans the site and lists the cookies and storage it finds. Entries already in Stape’s library can be added to your inventory in one click. Anything unknown needs a name, purpose and category from you.

Take this step seriously. The inventory drives two things later: which category each cookie belongs to, and what “Delete cookies on withdrawal” can remove. A scanner also only sees what loads during the scan, so cookies behind login, checkout or rarely triggered events may be missing. Add those manually in the Cookies tab with Add new entry.

When you’re done, click Open Consent Builder.

Step 4: Design the banner

The Consent Builder controls how the banner looks:

  1. Choose the banner type: Consent or Notices.
  2. If several regulations or languages apply, edit each one in turn.
  3. Switch between the banner, preferences window, floating icon and Global Privacy Control screen, and preview on different devices.
  4. Set the theme, colours, layout and position. Hiding the mascot and Stape logo requires the Business plan or above.

A design note from our side: make “Reject” as easy to find as “Accept”. Regulators in several EU countries have objected to banners that hide the reject option, and an honest banner also gives you cleaner consent data.

Click Save, close the builder, then Publish if you don’t need extra languages or settings. Otherwise continue to Step 5.

Step 5: Settings and localization (optional, but read it)

Stape marks this step optional. For any site with international traffic, we’d treat it as required.

Site settings

  • CMP target domain. Pre-filled from creation. Change it only if the banner should run elsewhere.
  • Consent cookie name. Defaults to stape_consent. Stape also sets stape_cmp_audit_pending, a temporary cookie that holds consent log records until they reach Stape, then deletes itself. Add both to your cookie inventory as strictly necessary.
  • Consent scope. All subdomains means one choice covers shop.example.com and blog.example.com. This subdomain only asks separately on each. If you run checkout or a blog on a subdomain, choose all subdomains so visitors aren’t asked twice.
  • Regional consent cookies. Clean up removes a consent cookie from another region when the visitor’s region changes, so a US visitor who later browses from the EU sees the EU banner and decides again. Preserve keeps the cookie but doesn’t treat it as valid consent. We default to Clean up.

Visitor settings

  • Visitors outside regulated regions. Consent starts as granted for these visitors. Show a notice displays a dismissible notice and records an implied decision. Stay silent shows nothing until the visitor opens preferences.
  • Hide the banner from bots. Useful for crawlers and monitoring tools. The trade-off: a real visitor misdetected as a bot won’t see the banner.
  • Default consent for bots. Granted if crawlers need tags to render pages or previews. Denied to keep bot traffic out of analytics and ad platforms. For most ecommerce sites, Denied keeps reports cleaner.

Consent categories

Stape ships five default categories, with wording and translations it maintains:

CategoryCoversCan visitors decline?
Strictly necessarySecurity, sessions, core site functionNo
PreferencesLanguage, region, display settingsYes
FunctionalEmbeds, interactive features, third-party toolsYes
AnalyticsPage views, traffic sources, interactionsYes
MarketingAds, retargeting, ad measurement, cross-site profilesYes

To change one, open its menu, choose Edit, then Unlink. Once unlinked, it becomes a custom category and Stape stops updating its wording and translations. Only unlink when you have a real reason, because you take over translation maintenance. You can also add new categories with Add category.

Localization

Add a language with Add language, then fill in each banner type for it: consent banner, notice banner, opt-out notice and so on. This is where regional experiences come together: for example, an opt-in banner for GDPR visitors in Germany and an opt-out notice for visitors covered by US state laws.

Set a fallback language for visitors whose language isn’t configured. It defaults to English; change it with Set as fallback.

Why GPC matters here: California and Colorado treat a Global Privacy Control signal as a legally binding opt-out (W3C GPC explainer), and over half of US state comprehensive privacy laws require or will require support for universal opt-out mechanisms (IAPP). Stape’s Consent Builder has a dedicated GPC screen, and consent logs record GPC status, so review both for US traffic.

Step 6: Configure web GTM

The CMP itself needs no tags. Your platform tags do need to respect it, and what you change depends on the integrations you enabled in Step 1.

The fastest route is Stape’s free Setup Wizard, which adds the required GTM configuration for you. One detail to know: with the Wizard, the update event is named stape_consent_update instead of stape_cmp_consent_update. If you build triggers by hand later, match whichever name your container actually receives.

If you configure manually, here’s how we approach it:

  1. Google tags (Consent Mode v2 enabled). Open Admin → Container Settings and turn on consent overview. For GA4 and Google Ads tags, the built-in consent checks are usually enough, so no extra trigger logic is needed. Confirm each tag shows the expected built-in consent types.
  2. Non-Google tags (Push dataLayer event enabled). Create Custom Event triggers for stape_cmp_consent_default and stape_cmp_consent_update. Read the category status from the event into Data Layer Variables, and fire Meta, TikTok or LinkedIn base tags only when the marketing category is granted. Add Additional Consent Checks on those tags for the relevant storage type.
  3. Server-side tags. Make sure the consent state reaches sGTM with each event, then respect it there: for example, don’t send Meta CAPI or TikTok Events API events for visitors who denied marketing. Blocking only the browser pixel while CAPI keeps sending is a common gap.

Stape’s guide has the exact variable and trigger settings for both paths inside its collapsible sections, so follow it alongside this outline.

Testing: prove it before you publish

A banner that looks right can still leave tags firing before consent. Test in both containers, in this order. Install the Stape GTM Helper Chrome extension first: it shows consent states in server GTM Preview, which GTM doesn’t do by default.

  1. Open Preview in both containers. Web GTM and server GTM, side by side.
  2. Check the defaults. In web GTM Preview, Consent Default should be one of the first events, followed by stape_cmp_consent_default before any tag fires. In the Consent tab, “On-page Default” should match the defaults set in the CMP.
  3. Interact with the banner. Accept all, then repeat with some categories rejected.
  4. Check the update. After Consent Update, you should see stape_cmp_consent_update (or stape_consent_update with the Wizard). Its Consent tab shows three columns: Default, On-page Update and Current State. The update must land before page_view, add_to_cart and other tracking events.
  5. Change your mind. Reject a previously accepted category. The update event should fire again with the new values.
  6. Check server GTM. In the Stape GTM Helper, enable the Consent mode server-side toggle. Open the latest event in server Preview and confirm ad_storage and analytics_storage match web Preview.
  7. Test each region. Use a VPN or region simulation to confirm EU visitors get the opt-in banner, US visitors get the opt-out experience, and others get what you chose in visitor settings.

A few checks we always add:

  • With everything rejected, DevTools → Network shows no requests to Meta, TikTok or Google Ads endpoints except cookieless Consent Mode pings.
  • With marketing rejected, server GTM sends nothing to Meta CAPI or other ad APIs for that visitor.
  • With “Delete cookies on withdrawal” enabled, rejecting analytics removes _ga cookies listed in the inventory.

Consent logs

The Consent logs tab is your audit trail. Each record holds the consent decision, date and time, source, country, page domain (not the full path), GPC status, TCF data if relevant, and the CMP configuration version. Records are kept for 3 years.

Each record has a Consent ID. If a visitor asks you to delete their consent records, that ID is how you find them. Use the logs during testing too: if your test decisions don’t appear, the CMP isn’t reaching your container.

Running several sites from one container

One sGTM container can hold several CMP configurations, each with its own design, text, languages and settings. This suits agencies and brands with multiple storefronts. Add one from the CMP tab with Add CMP, either as a blank CMP or by copying an existing banner.

Stape planCMPs per container
Free, Pro1
Business20
Enterprise50

Remember the billing side: every CMP script load is one Stape request (Stape: How CMP is billed). On a high-traffic site, check the usage forecast in your container before you launch.

Mistakes to avoid

  1. Forgetting Custom Loader. Without it, the CMP doesn’t load. Check it first when the banner doesn’t appear.
  2. Enabling every integration “just in case”. TCF and GPP add vendor screens and complexity. Enable them only when your ad stack needs them.
  3. Gating only the browser pixel. If the server container still sends conversion APIs for denied visitors, the setup isn’t respecting consent.
  4. Trusting the scan blindly. Checkout, account and logged-in pages often set cookies the scan never sees.
  5. Mixing up event names. Triggers built for stape_cmp_consent_update won’t fire if the Wizard pushes stape_consent_update.
  6. Shopify app conflict. Leaving “Rely on Shopify Customer Privacy API consent states” on in Stape’s Shopify app while the CMP syncs with that same API.
  7. Unlinking categories without a plan. You lose Stape’s automatic translation updates.
  8. Testing from one country only. EU, US and rest-of-world visitors see different banners. Test each.

The bottom line

If you already run server-side tracking on Stape, its CMP removes a separate vendor, a separate script and a separate bill, and puts consent in the same place as your tags. The setup itself is quick. The real work is choosing the right integrations, making sure both browser and server tags respect consent, and testing every region before launch.

This guide isn’t legal advice. Have your legal or privacy lead review the banner text, categories and regional rules.

Want a second pair of eyes on your consent setup or a full migration to Stape CMP?

The Optizent team can audit your current setup and configure it end to end.

Sources