2.0 Beta

Smootify 2.0 is in public beta. Your 1.x store keeps working. Move when you want.

What changed

Cookie consent

The values of `data-action` inside `smootify-consent`.

v2.0 beta
Open .md
On this page
  1. At a glance
  2. Where it can go
  3. Values

At a glance

is-required

The visitor has to answer

Banner
Shows.
Body
cookie-banner-visible
Preferences button
Hidden.
is-open

The preferences are open

Panels
consent-panel="banner" hides, consent-panel="preferences" shows.
Body
cookie-banner-visible
No class

The visitor has answered

Banner
Hidden.
Preferences button
Shows. A click opens the preferences.
No class

No consent needed in the region

Banner
Never shows.
Preferences button
Shows, and opens the preferences, for example to refuse the sale of data.

More in the guide.

Where it can go

Values

Attribute and valueWhat it isNotes
data-action="accept"Accept allon button, link
data-action="decline"Decline allon button, link
data-action="save"Save the choiceson button, link
data-action="preferences"Open the preferenceson button, link
data-action="close"Closeon button, link
name="marketing"MarketingA checkbox; on input
name="analytics"AnalyticsA checkbox; on input
name="preferences"PreferencesA checkbox; on input
name="sale_of_data"Sale of dataA checkbox; on input
consent-panel="banner"Banner panelon container
consent-panel="preferences"Preferences panelon container

    ↑ ↓ to moveEnter to openEsc to close