# 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: 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:

```
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>
```

The question should be specific, self-contained, and written in natural language.
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.
