> 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/collectez-les-preuves-de-consentement-cookies.md).

# Collect proof of cookie consent

Learn how to collect proof of consent cookies with Dastra.

Once the DASTRA cookie consent widget is implemented on your website, the DASTRA Cookie Consent module also allows you to **collect** and **export proof of cookie consent**.

## Prerequisites

To do this, you must have implemented a DASTRA cookie consent widget on your website.

{% 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 %}

## Collect evidence of consent to cookies

Once the widget is implemented, DASTRA automatically collects proof of consent from visitors to your website.

To consult them, simply go to the "Consent" interface of the DASTRA cookie consent module.

<figure><img src="https://2697025545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LvBxs22wUMicv9uWp6C-1972196547%2Fuploads%2F09UKneRzoI7vU1YgGBtD%2FCapture%20d%E2%80%99e%CC%81cran%202023-02-21%20a%CC%80%2016.20.07.png?alt=media&amp;token=f0d5fe06-093a-47e0-b616-578df0bc2600" alt=""><figcaption><p>"Consent" interface</p></figcaption></figure>

{% hint style="info" %}
From this interface, you can also customize the proofs of consent collected, export data, filter by date or cookie widget, among others.
{% endhint %}

Congratulations, you are now collecting proof of consent cookies!

The lifespan of the proof of consent is one year.

To make your site dynamic and truly take into account the consent of the user, go to the next section "go further on cookie consent":

{% content-ref url="/pages/-M4IkkyAbXfmeKH-g7Bb" %}
[Go further on cookie consent](/en/features/gerer-le-consentement-aux-cookies/configuration-du-widget/allez-plus-loin-sur-le-consentement-des-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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
