Cookie consent

A consent banner that asks visitors how they want their cookies handled.

What it’s for. Showing a cookie notice the first time someone visits, and remembering their choice so you don’t ask again. Visitors can accept all, decline everything but the essentials, or open up categories and pick. The choice is saved in their browser and expires after a set number of days, then the banner returns.

When to use it. Turn it on when you sell to regions with consent rules — the EU, UK, and similar. It’s off by default.

Ways to use it

  • Simple accept/decline — one notice, an “Accept all” and a “Decline” button. Fastest setup.
  • Granular — adds a “Customize” button that opens toggles for analytics, marketing, and functional cookies, plus “Save preferences.” Essential is always on and can’t be switched off.
  • Pick a position — a full-width bar at the top or bottom, a small card in either bottom corner, or a centered modal that dims the page.

Tips

  • This banner records consent in the visitor’s browser and signals Google Consent Mode (if you use gtag). It does not wire into Shopify’s Customer Privacy API on its own — if you rely on Shopify’s consent tracking, confirm that’s set up separately.
  • Add a “Manage preferences” link anywhere with data-open-cookie-preferences and it reopens the banner.
  • Dismissing the modal (close, overlay, or Escape) counts as a decline on the first visit, so it stops nagging.
  • Colors follow your theme unless you turn on a specific override.

Settings

SettingTypeWhat it does
Enable cookie consent bannerOn / offDefault: false

Behavior

SettingTypeWhat it does
Consent modeDropdownSimple (accept/decline), Granular (category toggles)
Consent expirySliderDays until consent expires and banner is shown again

Position

SettingTypeWhat it does
Banner positionDropdownBottom bar, Top bar, Bottom left corner, Bottom right corner, Center modal

Content

SettingTypeWhat it does
HeadingTextDefault: We use cookies
DescriptionMulti-line textDefault: We use cookies to improve your experience and analyze site traffic.
Privacy policy linkLink
Privacy policy link textTextDefault: Privacy Policy

Buttons

SettingTypeWhat it does
Accept button textTextDefault: Accept all
Decline button textTextDefault: Decline
Save preferences button textTextDefault: Save preferences
Customize button textTextDefault: Customize
SettingTypeWhat it does
Essential cookies labelTextDefault: Essential
Essential cookies descriptionTextDefault: Required for the website to function properly.
Analytics cookies labelTextDefault: Analytics
Analytics cookies descriptionTextDefault: Help us understand how visitors use our site.
Marketing cookies labelTextDefault: Marketing
Marketing cookies descriptionTextDefault: Used to deliver personalized ads.
Functional cookies labelTextDefault: Functional
Functional cookies descriptionTextDefault: Enable enhanced features and personalization.

Style

All colors follow your theme by default. Turn on a toggle to override one.

SettingTypeWhat it does
Custom background colorOn / offDefault: false
Background colorColor
Custom text colorOn / offDefault: false
Text colorColor
Custom Accept button colorOn / offDefault: false
Accept buttonColor
Accept button textColor
Custom secondary button colorOn / offDefault: false
Secondary buttons (Decline / Customize / Save)Color
Custom toggle colorOn / offDefault: false
Accent (category toggles)Color
Border radiusSliderDefault: 8

Was this page helpful?

Spotted something wrong, or want to suggest an improvement? Email support → — your message goes straight to engineering.