> 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/features/cookies/integration/identification.md).

# Identification des utilisateurs

Cette page explique comment remonter les identifiants internes de l'organisation dans les preuves de consentement.

## Principe de fonctionnement

Vous envoyez l'**identifiant unique de l'utilisateur authentifié** de votre intranet à la bannière Dastra, qui transmet cet identifiant lors de la collecte du consentement. Vous pouvez ainsi rapprocher les preuves de consentement de votre base clients (CRM, référentiel client, etc.). L'identifiant transmis s'affiche dans l'espace de consultation des preuves de consentement.

## Étape 1 : choisir l'identifiant de l'utilisateur

Pour faire ce rapprochement, choisissez un identifiant pseudonyme à transmettre à la bannière, par exemple l'identifiant interne du client ou son identifiant dans votre CRM. Cette variable doit être disponible dans la page web et est transmise en clair : elle ne doit contenir aucune donnée personnelle directe (nom, prénom, adresse e-mail), même encodée en base64, un encodage réversible.

## Étape 2 : adapter le code d'intégration

```html
<div id="cookie-consent"></div>
<script src="https://cdn.dastra.eu/sdk/dastra.js?key={YOUR PUBLIC KEY HERE}" async></script>
<script>

// Dastra's array initialization
window.dastra = window.dastra || [];

// Load the cookie consent in page
dastra.push(['loadCookieConsent', {
    widgetId: {Paste your widgetId here (digit)},
    selector: '#cookie-consent',
    userId: '{your user pseudonymous id}'
}]);
</script>
```

{% hint style="info" %}
Selon la région d'hébergement de votre organisation, l'adresse du script change (`cdn-bleu.dastra.eu` au lieu de `cdn.dastra.eu`). Reprenez l'adresse du code copié depuis la section **Installation** de la bannière.
{% endhint %}


---

# 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/features/cookies/integration/identification.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.
