# smootify-consent input[type="checkbox"][name]

> Consent category checkboxes, mirrored from and saved to the current consent.

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/reference/elements/smootify-consent-input-type-checkbox-name  
Updated: 2026-10-13

## At a glance

| Checkbox Name | Checked, the visitor allows | Without its Checkbox, Save… |
|---|---|---|
| `analytics` | measuring the site, such as Google Analytics and Shopify's reports | declines it |
| `marketing` | advertising, such as the Meta, Google Ads and TikTok pixels | declines it |
| `preferences` | remembering their settings on the site | declines it |
| `sale_of_data` | the sale or sharing of their data, under US privacy laws. It only matters in some regions, such as some US states: put its Checkbox inside an element with `consent-condition="sale-of-data"`, which shows only there | leaves it as it was |

More in [the guide](https://www.smootify.io/docs/features/cookie-consent).

`smootify-consent input[type="checkbox"][name]` is a **template**, read by [`smootify-consent`](https://www.smootify.io/docs/reference/elements/smootify-consent): it is never defined on its own.

## Where it can go

- **Inside** [`smootify-consent`](https://www.smootify.io/docs/reference/elements/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](https://www.smootify.io/docs/reference/attributes/consent) | `data-action` | 11 |
| [Cookie banner (condition)](https://www.smootify.io/docs/reference/conditions/consent) | `consent-condition` | 1 |
