# Transmission de la TC String

Si vos partenaires vous le demandent, vous pouvez ajouter à vos script distants que vous conditionnez à l'aide de l'attribut data-cmp-src une macro pour transmettre la [TC String](https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20Consent%20string%20and%20vendor%20list%20formats%20v2.md) générée par la CMP conformément au standard TCF de l'IAB Europe.

{% tabs %}
{% tab title="Exemple pour un script distant" %}

```markup
<script src="https://www.exemple.com/script.js?gdpr=&gdpr_consent=" type="text/javascript"></script>
```

{% endtab %}
{% endtabs %}

devient alors :

```markup
<script data-cmp-src="https://www.exemple.com/script.js?gdpr=${SDDAN_GDPR_APPLIES}&gdpr_consent=${SDDAN_GDPR_CONSENT}" type="text/javascript"></script>
```

Les macros seront automatiquement replacée par les valeurs adéqates. Dans l'exemple ci-dessus par exemple le tad sera appelé sur l'URL

```markup
https://www.exemple.com/script.js?gdpr=1&gdpr_consent=CPEBG-2PEv0r8BcAFBENBWCgAP_AAH_AAAqIHpQJwABAALAAeABUADIAIIAUgBUAC2AGgAagBEAC3AGEAYgA5ACEAE6ALgAY4A9AB-gEDAIQAR0AngBVwC6gGBAMIAaIA2gCPQEvAJiAT-AowBcwC8wGLgMZAZIB6UBUABYADwAKgAZABBADQANQAiABiAEIAP0AgYBCACrgF1AMCAaIA2gCPQExALzAZIAA
```


---

# 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://cmp.docs.sirdata.net/gestion-des-scripts/transmission-de-la-tc-string.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.
