Published · 14.09.2026Webstudio

Native CMP

Our free consent manager for Webstudio. It is built from native Webstudio elements and blocks scripts, embeds and YouTube and Vimeo videos until visitors give their consent.

  • Built from native Webstudio elements
  • Works with client-side navigation
  • Any language, right to left included
  • Google Consent Mode v2
nativecmp.com
Website of Native CMP

Native CMP is a consent manager built entirely from native Webstudio elements. You design the banner and the settings dialogue directly in the Webstudio Builder, with the same design tokens as the rest of your website. We released Native CMP on 14 September 2026.

What Native CMP does

  • Blocks third-party scripts, embeds and the YouTube and Vimeo components of Webstudio until visitors give their consent.
  • Deletes cookies when consent is missing or withdrawn.
  • Works reliably with Webstudio's client-side navigation.
  • Supports every language, including languages written from right to left.
  • Supports Google Consent Mode v2.
  • Offers consent gates that load content such as videos or maps only after consent.

How Native CMP is built

  • Engine: a script in the project settings under Custom Code, around 7 KB in size (gzip). It runs in the <head> before the page is rendered.
  • Interface: the banner and the settings dialogue form a shared slot made of ordinary Webstudio elements.
  • Data: the variables consentServices and consentTranslations hold services, cookies and texts per language.

Installation

  1. With an AI agent: an agent with access to the Webstudio MCP scans your project, blocks scripts and embeds, configures cookies and texts, drafts the section for the privacy policy and adapts the design. Instructions: nativecmp.com/install
  2. Generator: nativecmp.com/generator creates the configuration and ready-to-paste Webstudio building blocks.
  3. Examples: nativecmp.com/examples contains ready-made configurations for 23 common services, for example Google Analytics, Google Tag Manager, Meta Pixel, Matomo, YouTube and Google Maps.
  4. Starter project: a ready-made Webstudio project to clone, with engine, consent manager and YouTube gate. Live demo: starter.nativecmp.com

You will find the full documentation at nativecmp.com/docs.

Licence

Native CMP is licensed under the GNU Affero General Public License v3.0. You may use, modify and distribute Native CMP, including on commercial websites. Anyone who distributes a modified version or offers it over a network must publish its source code under the same licence. The source code is on GitHub.