> For the complete documentation index, see [llms.txt](https://community.commandersact.com/customer-success/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://community.commandersact.com/customer-success/cookbooks-and-tutorials/consent-management/how-do-i-create-a-cookie-that-is-deposited-after-consent.md).

# How do I create a cookie that is deposited after consent?

Analytics or marketing teams need to capture information on more than a single page of the site. The cookie will meet this need, but some precautions must be taken to remain in compliance with the rec

## How to proceed

1. Go to the Options tab of TagCommander and select the 'data storage' tab&#x20;
2. Click on the 'add data storage' button&#x20;
3. Name the cookie, attach it to the desired container.&#x20;
4. Set its life span and usage, using the drop-down menus.&#x20;
5. Assign a privacy category to it&#x20;
6. Click on save&#x20;
7. Go to the TagCommander editing step. You can now generate and deploy your container. The cookie is ready to use.

<figure><img src="https://1613709692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0zW0zvGDZaiNuIFweCtu%2Fuploads%2F3tec2l6uV0j07UVIlR4r%2Fcookbook.jpg?alt=media&amp;token=e16a8c03-639e-4b7b-902b-15daddc15713" alt=""><figcaption></figcaption></figure>

## Downloads

{% file src="/files/0VTg9EyEza3m5AbAVH8O" %}
