Lire cet article en français

Article sponsored by Stape. As with my previous article on Stape, this tutorial is part of a paid collaboration. There, it’s out in the open, you can put your product-placement detectors away. I’d have struggled to resist testing a new CMP anyway, but you might as well know from the outset what the arrangement is here.

This article was written without AI (well, almost)
No em dashes were harmed in the writing of this article, and the dubious puns, repetitions and wildly overlong sentences were produced by my own chunky fingers on a device known as a Logitech keyboard.
That said, I’m not a caveman either. I do use whichever LLM happens to be within reach (Codex at the moment) to:

  • Corect teh speling misstakes
  • Smooth out awkward phrasing
  • Spot repetitions, something I’m rather fond of to begin with
  • Generate article summaries / tables of contents
  • Translate into English

Rainy days and tasty cookies

It’s 10 November 2026. A thoroughly miserable autumn Tuesday, with that friendly yet slightly hostile Breton drizzle, and a lovely 9°C promising a cold at the slightest misstep. In other words, an absolutely royal setting for definitely not setting foot outside, and knocking back a few hundred litres of coffee in front of the eagerly awaited first edition of Stape Relay (it was good, and it’s not today’s topic, but there are replays).

Were we expecting some exciting announcements about upcoming sGTM templates? We got them. Did we want a mix of technical and business talks? Mission accomplished. Scanning QR codes with the dedication of a groupie trying to get tickets for Céline Dion’s tour, all to win a very stylish mug? Check.

A speaker wearing a red cap presents a Stape Relay mug.

But were we really ready for our trusted mates Dan and Marcin, with their trademark composure, to literally obliterate the CMP market (in my head, at least) in under 10 minutes? Clearly not.

Because yes, you’ve probably seen it: Stape announced, and almost immediately released, a CMP at no extra cost (well, a little, but we’ll get to that) as part of its already very generous offering. And even though I like the idea of vibe coding your own CMP like a little artisan, just as I deeply enjoy setting up slightly provocative CMP configurations (if you know, you know), I thought I absolutely had to test this. In the future of the past in which I’m writing this article, you’ll probably have accepted (or rejected) cookies on my website through this very CMP. But in the past of the future, I’m going to unbox (or will I have unboxed, then? #sequenceOfTenses) this lovely tool in this sponsored tutorial. And if you’re already familiar with the tools on the market, let me be completely transparent: expect some good stuff.

Protecting your privacy is our priority

CMP is now a new tab inside your Stape container, and my adventurous spirit is clearly urging me to click “Add CMP”, which should, quite logically, create a new CMP.

The CMP tab in a Stape container, with no CMP created and an Add CMP button.

Worth mentioning: if you’re an obsessive CMP collector (each to their own kinks), you can even create several within a single Stape container.

This is where Stape offers you an excellent wizard to configure the basics in a few steps, rather like the complimentary welcome salad at the Buffalo Grill on your nearest out-of-town retail park:

Stape creation wizard asking for the website domain before creating the CMP.

Although it’s very well designed and an excellent option for getting something decent up and running quickly, we’ll leave that wizard aside for now (feel free to take the Buffalo Grill welcome salad, though, I’m not judging), and look at the CMP’s various submenus in detail. I’ll do this in an order that I think makes sense for understanding what this disruptive technology is made of:

Stape CMP navigation: Scanning, Cookies, Consent logs, Localization, Settings and Consent Builder.
  • Cookies: how to add, classify and group them.
  • Settings: everything to do with your CMP’s general configuration (third-party integrations, privacy, domains, etc.).
  • Localization: the wording in the various languages you want to display.
  • Scanning: running and reviewing scans, ideally more often than just when the CNIL, France’s data protection authority, sends you a formal notice or someone reports you.
  • Consent Builder: where you configure the actual design.
  • Consent logs: to understand how your users’ consent is stored.

The Cookies screen

Yes, we’re in a CMP, so having a screen where you can add cookies seems fairly plausible. If you’ve already had the audacity to run a scan (which we’ll cover later), an initial list will have been populated, but what we’re interested in, of course, is clicking “Add new entry” to add a cookie:

Stape cookie creation form: name, provider, purposes, type, expiry and domains.

You can, and indeed should, use the suggestions from Stape’s catalogue, which will attach a purpose (we’ll come back to that), an expiry and a description to the cookie:

Stape catalogue suggestions while entering a cookie name, including Google Analytics cookies.

You can then click “unlink” if you want to use that initial description as a starting point and put your own spin on it:

A cookie description field in Stape edited with custom text.

Naturally, you do this at your own risk: the cookie library gets updated, so it’s up to you whether you want to maintain this yourself, depending on how many cookies your website sets.

This is also where you’ll add translations of those descriptions, where relevant.

The Settings screen

Since we’re getting nicely into the habit of ignoring the UI’s order, let’s carry on with this absolutely crucial screen, probably the most technical one. Let’s take a (long) tour, looking closely at the options that need your full attention:

Stape settings for the domain, consent cookie, subdomains, regions and bot consent.
  • CMP target domain: no need to draw you a picture here; obviously, check that the domain matches your website.
  • Consent cookie name: again, this setting is fairly self-explanatory. If you feel like changing the name of the cookie used by the CMP itself, it can be useful, even if it doesn’t fundamentally change much.
  • Consent scope: imagine my delight at seeing this option, so explicit and clear, letting you choose whether consent applies only to the subdomain (www.monsite.com) or to the top-level domain (monsite.com). I won’t go into detail, but I’ve seen various legal interpretations from hotshot local DPOs who felt that moving to a subdomain required fresh consent (apparently explained either by a private CNIL webinar or by the atmospheric pressure recorded at the time). SO, no magic tricks needed here to trigger consent again every time the subdomain changes, if that’s the choice you make, in all good conscience.
  • Regional consent cookies: as we’ll see a little later, Stape’s CMP displays differently depending on the region, and here you can choose whether to keep the same display when a user changes regions. Yes, we’re thinking very hard about VPN users.
  • Next up is Visitors outside regulated regions, where you choose whether to display the CMP in unregulated regions (we’ll return to this in the design section).
  • Then two options which, to my knowledge, are a first on the market: Hide the consent banner from bots, and its little sister Default consent state for bots, both fairly self-explanatory. I won’t hide it: when this was announced, I let out a little scream. On reflection, it was more of an “AH!” in the style of Denis Brogniart, the French Survivor host. Given the hordes of bots attacking even the smallest website these days, if we can save some money there, we’ll take it.

Next comes “Disclosures”. Nothing wildly exciting here, mostly administrative paperwork, except for one detail that’s actually quite significant: Show Google privacy link. If you don’t know the full story, let’s have one of those little digressions I love so much. Sometime around 2025, Google, that small Californian company whose communication on privacy has always been absolutely clear and understandable, imposed this on some of its clients, across, to my knowledge, every technology on the market. Why? I’d pay good money to know. Anyway, Google wanted a link to its privacy page, and not just anywhere, oh no, but on the first layer of the CMP, under threat of turning off the Google Ads taps (it sounds like an April Fool’s joke, but it isn’t, and I know a few people who broke into a sweat when those warnings arrived). Sundar Pichai truly does move in mysterious ways. On many platforms, doing this required a magic trick (and honestly, I don’t blame them: why should a CMP, which by definition has a page dedicated to the various cookie categories, include a link to Google’s privacy page on the first layer?). So hats off to Stape for having the good sense to offer this option by default.

Stape Disclosures section: privacy policy, organisation, contact details and the Google privacy link enabled.

Because, at the end of the day, why not?

Flex Tape meme: a tank labelled CMP leaks, then a hand patches the leak with a link to the Google privacy page.

Moving on to Consent categories: this screen follows the Vendors / Purposes logic found in other tools on the market. Depending on the cookies (the vendors, then) you’ve added, the corresponding purposes appear, and you can organise them into different categories. Same story here: you can cook up your own categories or follow the default logic. This determines what appears on the preferences screen.

Stape consent categories: strictly necessary cookies, analytics and unused purposes.

Then comes Integrations & consent signals, fairly crucial to the CMP’s overall behaviour, and perhaps the most technical section of the lot.

Stape options for Google Consent Mode v2, dataLayer events, cookie deletion, Shopify, Microsoft and IAB.
  • Google Consent Mode v2: your choice here, depending on whether you’d rather have the CMP push consent signals or manage them through the appropriate GTM template. That’s a long debate I won’t get into here, and largely a matter of your GTM habits. Either way, and this matters a lot, the Google-style categories ad_storage, analytics_storage and friends will be mapped to the native purposes, as shown below:
Mapping between Stape consent categories and Google Consent Mode signals, including analytics_storage and ad_storage.

In practice, if you’re using advanced Consent Mode, you need to have the associated purposes, and that’s far from trivial.

  • Push dataLayer event: naturally essential for connecting everything up in GTM, as we’ll see later in the dedicated GTM section.

  • Delete cookies on withdrawal: without wanting to spoil the mood, formal notices and fines were issued in 2026 over precisely this “accept, then reject” scenario, because the CNIL requires previously set cookies to be deleted following rejection (and because I never turn down a little dig at the CNIL, they also asked for third-party cookies to be deleted. A reminder: your taxes pay for this). To my knowledge, Stape is the only CMP on the market that handles this natively; with other platforms, you need a few magic tricks in GTM or hard-coded on the website. So yes, I strongly recommend enabling this. Your DPO will thank you (and they’re usually the only person in the company who’s ever opened a CMP preferences screen anyway).

Meme: a man smiles at “Delete first party cookies”, then looks surprised at “Delete third party cookies”.
  • Shopify Customer Privacy API: to be completely honest, I haven’t yet had the pleasure or honour of testing Stape’s CMP on a Shopify website, but ticking this option doesn’t strike me as unreasonable if that’s the platform you’re using.

  • In-page blocking: enabling this gives you a wrapper to put around functional elements that require consent (typically a video player or a chat widget such as Crisp or similar).

<script type="text/cmp-blocked" data-cmp-categories="preferences" src="https://example.com/script.js"></script>
  • Microsoft Consent (UET & Clarity): broadly speaking, this should be consistent with your Google Consent Mode choice, and will feed consent into Clarity and any UET tags you still have on the front end. Not to gossip, but MS Ads works beautifully with the server-side template developed by, guess who (yes, Stape again).

  • IAB TCF: this toggle almost deserves an article of its own. In a nutshell, and with a few shortcuts you’ll hopefully forgive, tick this if you monetise your website’s audience. I’ll return to it in detail.

The Localization screen

By default, Stape’s CMP is configured in English, with a whole load of lovingly prepared text just for you, which you can edit. Adding a language replicates all that text, with default translations you can of course override. After all, who am I to judge whether Olet kieltäytynyt henkilökohtaisten tietojesi myynnistä is acceptable wording for withdrawing consent in Finnish?

Stape Localization screen with English and French languages and banner text in English. UNO meme: a card asks in Finnish to reject the sale of personal data or draw 25 cards; a player holds a large hand of cards.

For what it’s worth, if your favourite DPO decides the original wording isn’t compliant, and that “purposes” should be replaced with “infrastructural acceptance categories”, bear in mind there’s a seriously hefty amount of text to translate, particularly the notices specific to regulations outside the GDPR. Then again, perhaps you have the time (or someone fluent in legal jargon in both Finnish and Hindi).

Make sure you update the “Body” text with the dedicated tags for your Privacy page, as well as that famous Google privacy page, if you’ve made that bold choice entirely without a gun to your head.

French banner text with privacy and google tags for the privacy links.

There’s always a fallback language for when the user’s browser language doesn’t match any of the languages you’ve configured.

The Scanning screen

By default, an automatic scan runs every 28 days, but why hold back?

Stape cookie scan history, with a scan in progress, completed scans and the Custom Loader installed.

The scan loads the homepage, checks which cookies are set, accepts cookies, then checks again.

Stape scan results: cookies detected before and after consent, with associated domains and providers.

Obviously, if you’ve been getting a bit carried away, you’ll get a little slap on the wrist (a virtual one, at least) if a cookie is set on your website but missing from the list:

Stape scan results flagging Google Analytics and Google Advertising cookies missing from the list.

This screen is the place to be for configuring everything to do with the CMP’s visual appearance:

Stape Consent Builder: light theme, layout options and consent window preview on Might & Metrics.

First, you need to understand that Stape has a fairly unusual way of doing things (which I personally find very elegant). By default, the CMP’s display logic depends on the user’s location:

  • What Stape calls Consent covers countries with GDPR-style regulations, but also PSPA, LGPD and friends. Broadly, any regulation requiring explicit opt-in before collecting data, or at least before setting cookies (advanced CoMo, if you know, you know).
  • Conversely, Notices layouts (CCPA for the United States, PIPEDA for Canada) have users opted in by default, with a button to opt out. For each of these two layouts, you can configure as many languages as needed. The layout is based on location, and the language on the browser (note to self: ask NordVPN to sponsor the next article). Think of a user located in the United States with a browser set to French, for example.
Stape Consent Builder selectors: Consent or Notices mode, GDPR regulation for 38 countries and French language.

And for completeness, here’s the official technical architecture diagram:

Drake meme: he rejects the term Layout and approves the term Notice.

In the left-hand column of the interface, let’s quickly run through the purely visual options you should be able to handle:

  • Theme (dark, light, dynamically adapted to your website).
  • Customize colours.
  • The two toggles “Show the mascot” and “Show Stape logo” (you can’t include your own logo, custom branding in general, or any CSS overrides).

Next, there are options specific to the two layout types:

  • For “Consent”, you can choose between more or less prominent displays (blocking modal, banner, discreet box), each with appropriate visual options (position on the page, button styles, etc.). Note the “Allow a non-compliant button set” toggle, whose name should give you a feel for the vibe, allowing more or less exotic button configurations (and because I know you’ll ask: no, you can’t put the French-style “Continuer sans accepter”, or “Continue without accepting”, at the top of the banner).
  • For North American-style “Notices”, the logic is the same (banner vs box, top or bottom, etc.), with fewer options, since by definition this is a lighter format.
Meme against a French flag: a character in a striped shirt holds baguettes and a glass of wine between “Continuer sans accepter” (Continue without accepting) and “Tout accepter” (Accept all). Privacy details step in the Stape wizard, with organisation information and the Google privacy link.

In all cases, you can use the buttons at the top of the interface to preview everything, switching between consent / notice mode, regulation, language, the different screens and device (web / mobile).

Consent Builder preview on Might & Metrics, with selectors for mode, regulation, language, screen and desktop or mobile display.

Honestly, if you can still find an excuse to make an ugly, non-compliant CMP after all that, there’s really not much more I can do for you.

There we are. That was long, but necessary: we’ve covered the UI.

GTM

Ohh, hey, hey! Did you think I’d just leave you hanging? No, my friends, it would be professional misconduct not to look at what happens in GTM.

Once this is deployed, assuming you’ve enabled Consent Mode and data layer pushes, we end up with fairly standard behaviour, rather similar to what you’ll find with other platforms.

When the CMP loads:

dataLayer.push({
  event: "stape_cmp_consent_default",
  stape_cmp_consent: {categories: {necessary: true, analytics: false}, source: "implied"}
  })
dataLayer.push({
  event: "stape_cmp_consent_default",
  stape_cmp_consent: {categories: {necessary: true, analytics: false}, source: "implied"}
  })

We also get the usual Gtag calls:

At initialisation:

gtag("consent", "default", {
  ad_storage: "denied",
  ad_user_data: "denied",
  ad_personalization: "denied",
  analytics_storage: "denied",
  functionality_storage: "denied",
  personalization_storage: "denied",
  security_storage: "granted",
  wait_for_update: 500
})

Then when consent is granted:

gtag("consent", "update", {
  security_storage: "granted", 
  analytics_storage: "granted"
})

In terms of configuration, we’ll therefore use much the same logic as elsewhere:

  • The stape_cmp_consent_update event for page_view tags.
  • If some DL events might fire before that event, use trigger groups combining stape_cmp_consent_update with the appropriate trigger (typically a view_item).
  • If we’re working with events that necessarily fire later (clicks and the like), no problem: a simple event trigger will do.

I’ll spare you the usual speech about trigger group limitations (resetting the ecommerce object, multiple events on the same page). You can absolutely skip this event and read consent from the stape_consent cookie, which is perfectly straightforward to parse:

{
  "categories": {
    "necessary": true,
    "analytics": false
  },
  "source": "user",
  "regulation": "gdpr",
  "model": "blocking-consent",
  "tcf": false,
  "postureEpoch": 1,
  "decision": "denied",
  "timestamp": 1796220454677,
  "gpcAtDecision": false,
  "config_version": 2,
  "expires_at": 1830434854,
  "consentId": "fb28d754-ee6c-4282-be09-fd41fe838ff6"
}

You can’t reject an individual vendor independently, since toggles are only available at purpose level. So if you want to do your own thing with this cookie, you’ll need to read categories.analytics, for example, and check its status, including when the page loads.

Web performance and cost: the icing on the cake

Obviously, it would be criminal not to mention one fairly phenomenal benefit of this CMP: everything is first-party and loaded through Stape’s custom loader. First of all, use the custom loader if you aren’t already. Then take a look at the ridiculously small size of the library it loads. In my case, with a fairly minimal configuration (GA / Piano), we’re talking a measly 26 kB.

Developer tools Network tab: the selected CMP script shows a 200 status and a size of 26.9 kB.

I’m not here to run anyone down, but I invite you to do your own research into the JS libraries loaded by other tools, often from third-party domains to boot, and compare. Just saying.

So, how much does it actually cost?

Yes, when we say it’s free, it doesn’t mean you’re the product, but there is a nuance: if you use the Custom Loader (use the Custom Loader) and have enabled Request Analytics (enable Request Analytics), CMP appears under “Other request” as shown below, and you’ll pay for these events just like any others:

Stape Request Analytics: the CMP row shows 163 requests, including 16 with an ad blocker, beside the trend chart.

And in the logs, you can filter for “CMP” under “Event type” if you want to explore this in more detail:

Stape incoming request logs with the Event type filter open and CMP selected.

So I suggest weighing that against your overall Stape plan, and/or comparing it with what you currently pay your CMP provider. Your call, of course. Though if you make that call using my Stape partner code, even better. I can’t force you, obviously. But still, I do need to fund my sixth Lamborghini.

What about you, are you tempted to switch your CMP to Stape too? Let me know in the comments 🫶🫶 Like and subscribe, it helps us climb the algorithm In practice, go and leave a comment on LinkedIn like everyone else, or just send me a message if you’re too shy.

See you soon; tenderness, cookies and indulgence.