> For the complete documentation index, see [llms.txt](https://cmp.docs.sirdata.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cmp.docs.sirdata.net/en/script-management/share-the-tc-string.md).

# Share the TC String

If your partners ask you, you can add to your remote scripts that you condition using the data-cmp-src attribute a macro to transmit the [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) generated by the CMP in accordance with the IAB Europe TCF standard.

{% tabs %}
{% tab title="Example" %}

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

{% endtab %}
{% endtabs %}

should become :

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

The macros will be automatically replaced by the appropriate values. E.g. in the previous example the tag will be called on the following URL :

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


---

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

```
GET https://cmp.docs.sirdata.net/en/script-management/share-the-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.
