smootify-consent input[type="checkbox"][name]
Consent category checkboxes, mirrored from and saved to the current consent.
At a glance
Name: analytics
Measuring the site
- Allows
- Measuring the site, such as Google Analytics and Shopify's reports.
- Without it
- Save declines it.
Name: marketing
Advertising
- Allows
- Advertising, such as the Meta, Google Ads and TikTok pixels.
- Without it
- Save declines it.
Name: preferences
Remembering settings
- Allows
- Remembering their settings on the site.
- Without it
- Save declines it.
Name: sale_of_data
The sale of data
- Allows
- The sale or sharing of their data, under US privacy laws.
- Without it
- Save leaves it as it was.
- Shows
- Inside an element with
consent-condition="sale-of-data": only in those regions.
More in the guide.
smootify-consent input[type="checkbox"][name] 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
name.
Attributes inside it
| Group | Attribute name | Values |
|---|---|---|
| Cookie consent | data-action | 11 |
| Cookie banner (condition) | consent-condition | 1 |