# Advanced configuration

If needed, you can proceed a more specific conditioning by filling the information you need the CMP to verify before triggering the loading of the script.

You will find the list of attributes that can be specified in the table below:

| **Attribute**                             | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **data-cmp-src (requis)**                 | <p>URL of the script to condition (ex : <code><https://www.abc.com/script.js></code>).<br>You can also specify a JavaScript function to execute, that is previously defined on the page (ex : <code>loadScript</code>).</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **data-cmp-vendor**                       | <p>IAB partner ID to verify (ex : <code>53</code>).<br>When specified, a list of purposes and/or special features must be specified as well.</p><p></p><p>Exemples :</p><ul><li>Amazon Advertising : <code>793</code></li><li>Awin : <code>907</code></li><li>BeOp : <code>666</code></li><li>Criteo : <code>91</code></li><li>Dailymotion : <code>573</code></li><li>Digiteka : <code>343</code></li><li>Effiliation / Effinity : <code>402</code></li><li>Google (Ad Manager, AdSense, Ads, Tag Manager, ...) : <code>755</code></li><li>Impactify : <code>606</code></li><li>Invibes : <code>436</code></li><li>Kwanko : <code>702</code></li><li>Microsoft : <code>1126</code></li><li>Opti Digital : <code>915</code></li><li>Outbrain : <code>164</code></li><li>Rakuten Marketing LLC : <code>60</code></li><li>Seedtag : <code>157</code></li><li>Taboola : <code>42</code></li><li>Teads : <code>132</code></li></ul><p><a href="https://iabeurope.eu/vendor-list-tcf-v2-0/">Access the full list of IAB partners</a></p> |
| **data-cmp-provider**                     | <p>Google partner ID to verify</p><p></p><p>Exemples :</p><ul><li>Facebook : <code>89</code></li><li>AT Internet : <code>587</code></li><li>Tradedoubler AB : <code>486</code></li></ul><p><a href="https://choices-preprod.consentframework.com/api/v1/public/list/google-ac">Access the full list of Google partners</a></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **data-cmp-extra-vendor**                 | <p>Sirdata partner ID to verify.<br>When specified, a list of purposes must be specified as well.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **data-cmp-extra-purposes**\*             | <p>List of Sirdata's Purposes IDs\* for which the specified partner requires user consent (ex : <code>1,3,4</code>).</p><p><strong>WARNING : <code>data-cmp-extra-vendor</code> must be specified as well.</strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **data-cmp-extra-purposes-li**\*          | <p>List of Sirdata's Purposes IDs\* for which the specified partner requires user consent (ex : <code>1,3,4</code>).</p><p><strong>WARNING : <code>data-cmp-extra-vendor</code> must be specified as well.</strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **data-cmp-purposes**\*\*                 | <p>List of TCF's Purposes IDs\*\* for which the specified partner requires user consent (ex : <code>1,3,4</code>).</p><p><strong>WARNING : <code>data-cmp-vendor</code> must be specified as well.</strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **data-cmp-purposes-li**\*\*              | <p>List of TCF's Purposes IDs\*\* for which the specified partner relies on its legitimate interest (ex : <code>2,5</code>).<br><strong>WARNING : <code>data-cmp-vendor</code> must be specified as well.</strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| **data-cmp-special-features**             | <p>List of special features IDs for which the specified partner requires user consent (ex : <code>1</code>).<br><strong>WARNING : <code>data-cmp-vendor</code> must be specified as well.</strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| **data-cmp-publisher-purposes**           | List of purposes IDs for which you require user consent.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| **data-cmp-publisher-purposes-li**        | List of purposes IDs for which you rely on your legitimate interest.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| **data-cmp-publisher-custom-purposes**    | List of custom purposes IDs for which you require user consent.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **data-cmp-publisher-custom-purposes-li** | List of custom purposes IDs for which you rely on your legitimate interest.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **data-cmp-require-choice**               | Boolean (`true` or `false`) to indicate if the CMP should wait for the user to validate his choices before triggering the checking.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **data-cmp-disable-check**                | <p>Boolean (<code>true</code> ou <code>false</code>) to indicate if the CMP must deactivate the default check on the purpose 1.<br><strong>NOTE: This is only functional if no specific condition on a purpose or a partner is defined.</strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| **data-cmp-parent**                       | If the conditioned script must be loaded at a specific location in the page, it is possible to indicate the ID of the parent HTML element that should contain it (only available for `<script>` tags).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| **data-cmp-fallback-src**                 | Allows to specify an alternative script when the loading conditions of`data-cmp-src` are not fullfilled. This script can be conditioned with the same attributes listed above by prefixing them with`data-cmp-fallback-` instead of `data-cmp-`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **${SDDAN\_GDPR\_APPLIES}**               | Macro to be used in the url called via the data-cmp-src attribute to add the GDPR parameter of the TCF of the IAB Europe                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| **${SDDAN\_GDPR\_CONSENT}**               | Macro to be used in the url called via the data-cmp-src attribute to add the TC String of the TCF of the IAB Europe                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |

\*Purposes handled par Sirdata :

1. Electronic communications (email, fax, SMS/MMS, or automated calls)
2. Direct mail and telemarketing
3. Personalized ads on TV (segmented TV)
4. Personalized ads on radio (segmented radio)

\*\*TCF's Purposes :

1. Store and/or access information on a device
2. Use limited data to select advertising
3. Create profiles for personalised advertising
4. Use profiles to select personalised advertising
5. Create profiles to personalise content
6. Use profiles to select personalised content
7. Measure advertising performance
8. Measure content performance
9. Understand audiences through statistics or combinations of data from different sources
10. Develop and improve services
11. Use limited data to select content

{% hint style="danger" %}
When a partner and purposes are specified, it removes the default check on the purpose 1. If you wish to keep the check on the purpose 1, please make sure to include it in the `data-cmp-purposes` attribute.
{% endhint %}

{% hint style="info" %}
This method allows a great technical simplification of the tag management. However, it is important to keep in mind that legal expertise is necessary to figure out how to apply it by yourself.

\
For each tag/beacon, you must:

* Evaluate the possible presence of non-exempted trackers (cookies, indexdb, local storage, etc.) (ePrivacy Directive)
* Evaluate the processing of personal data and, if applicable, the purposes pursued by your partners and their respective legal bases (GDPR)
* Evaluate if a tag/beacon is automatically supported by your partners thanks to the CMP APIs (e.g.: Google and Microsoft Bing's "Consent Mode")

Don't hesitate to ask our team to set up these packaging for you:&#x20;

<https://cmp.docs.sirdata.net/v/en/script-management/tag-conditioning-service>
{% endhint %}

### &#x20;<a href="#examples" id="examples"></a>
