Create your free cookie banner

Use our setup wizard and have your banner ready to use in minutes.

  • Free and open source
  • Google Consent Mode v2
  • No account needed
Step 1Color scheme, Classic
Preset
Step 2Position, Bottom right
Banner position
Step 3Background, Dimmed 20%

The page behind the banner is dimmed and can’t be used until the visitor accepts, rejects or saves their preferences.

Step 4Cookie icon, Bottom left · Accent

The cookie icon is shown after the banner is closed, allowing users to change their preferences.

Position
Color scheme
Step 5Consent types, 3 types

Essential

Analytics

Google Consent Mode and scripts ,
Google Consent Mode signals

When a visitor grants this consent, the checked signals are set to granted in Google Consent Mode. For Google Ads, check all three advertising signals.

Tracking & integrations

Load third-party scripts only when this consent is granted. Each one is injected on accept and removed (via page reload) if the user revokes consent.

Marketing

Google Consent Mode and scripts ,
Google Consent Mode signals

When a visitor grants this consent, the checked signals are set to granted in Google Consent Mode. For Google Ads, check all three advertising signals.

Tracking & integrations

Load third-party scripts only when this consent is granted. Each one is injected on accept and removed (via page reload) if the user revokes consent.

Advanced

Override the event fired to window.dataLayer when consent changes. Leave blank to use the default stcm_consent_update.

Step 6Banner text

Accept button

Reject button

Preferences button

Accessible labels are used to describe each button audibly, e.g. for partially-sighted users.

Step 7Preferences panel text

Save button

Credit button

Step 8Installation instructions

Step 1: Add this HTML to your page, inside the <head> tag. The CSS and JS load from jsDelivr CDN — no files to host yourself.

Step 2 (optional): Prefer to self-host? Download the bundle and replace the CDN URLs with paths to where you place the files.

Learn more: Consult our documentation for advanced configuration options and how to set up with Google Consent Mode.

Subscribe to updates

Our cookie banner code will receive updates from time to time. Sign up to be notified so you can download the new version. No spam, we promise.

Changes show in the preview as you make them.

Restart and reset everything?

This restarts the preview and puts every setting back to its default: the colours, positions, consent types and text. Your changes can’t be recovered.

Press Escape to come back to the wizard.