smootify-consent [data-action]
Consent buttons (accept all, decline all, save choices, open preferences, close).
At a glance
data-action="preferences"
Choose by category
- Answer
- None yet: the visitor answers in the panel (step 2).
- Banner
- Shows the preferences panel.
data-action="close"
Close without answering
- Answer
- None. Nothing that needs consent loads.
- Banner
- Hidden for this page. It shows again on the next page.
More in the guide.
smootify-consent [data-action] is a template, read by smootify-consent: it is never defined on its own.
Where it can go
- Inside
smootify-consent. - Out of place, it stays in the page and does nothing.
What it requires
Nothing beyond Smootify: it works on every plan.
Attributes on the element
- It reads
data-action.
Attributes inside it
| Group | Attribute name | Values |
|---|---|---|
| Cookie consent | data-action | 11 |
| Cookie banner (condition) | consent-condition | 1 |