> For the complete documentation index, see [llms.txt](https://doc.dastra.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.dastra.eu/en/features/gerer-le-consentement-aux-cookies/configuration-du-widget/classifiez-les-cookies-par-categories-de-consentement.md).

# Classify cookies by consent categories

With DASTRA, you can classify via a simple "drag and drop" the cookies deposited on your website, by broad category of purpose:

* "**Strictly necessary**" cookies: these are cookies that are exempt from consent by their nature (for example, session or consent cookies)
* "**Preferences**" type cookies
* "**Audience analysis**" type cookies
* "**Marketing and user experience**" cookies
* Other cookies.

{% content-ref url="/pages/1T5zJslQz7mvpsDUKYB2" %}
[The purposes of cookies](/en/features/gerer-le-consentement-aux-cookies/configuration-du-widget/the-purposes-of-cookies.md)
{% endcontent-ref %}

To do this, simply select the cookie to be classified from the Classification interface, then move it by simply "clicking and dropping" it to the category of your choice.

![The "Cookie to classify" cookie being classified](/files/-M4FSB7Vcd5Nr7Bpv3Os)

![The "Cookie to be filed" cookie filed in the "Preferences" category](/files/-M4FSRWt6BpcaGp7olHM)

{% hint style="info" %}
You can define whether or not consent is required for each cookie on a case-by-case basis.
{% endhint %}

Once you have categorized all your cookies, you can implement the corresponding consent widget.

{% content-ref url="/pages/-M378oB2HodWBFfDdJsg" %}
[Implement a cookie consent widget](/en/features/gerer-le-consentement-aux-cookies/configuration-du-widget/implementez-un-widget-de-consentement-aux-cookies.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.dastra.eu/en/features/gerer-le-consentement-aux-cookies/configuration-du-widget/classifiez-les-cookies-par-categories-de-consentement.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
