LogoLogo
Analytics HelperSirdata APISemantic APIA propos de Sirdata
English
English
  • Sirdata CMP
  • INSTALL
    • Web & Mobile web
    • AMP
    • Via a Tag Manager
      • Loading via Google Tag Manager
    • In a CMS
      • Loading in Shopify
      • Loading in Wordpress
      • Loading in Prestashop
      • Loading in Magento
      • Loading in Drupal
    • Cache Systems Exclusion
      • Autoptimize WordPress Plugin
      • Cloudflare WordPress Plugin
      • LiteSpeed WordPress Plugin
      • NitroPack WordPress Plugin
      • SG Optimizer WordPress Plugin
      • WP Super Cache WordPress Plugin
      • W3 Total Cache WordPress Plugin
      • WP Meteor Plugin for Wordpress
      • WP Rocket WordPress Plugin
  • CONSENT TRANSMISSION STANDARDS
    • Introduction
    • Google Consent Mode
      • Mandatory Prerequisite
      • Activation of Advanced Google Consent Mode
        • Via the Sirdata CMP
        • Via Google Tag Manager
      • Activation of Basic Google Consent Mode
        • Via the Sirdata CMP
        • Via Google Tag Manager
      • Activation via Sirdata CMP
      • Activation via Google Tag Manager
    • Microsoft UET Consent Mode
    • Microsoft Clarity Consent
  • CMP API
    • How it works
    • Examples
    • Working with iframes
  • Advanced features
    • Passive mode
    • Set language per user
    • Manually display the CMP
  • Script management
    • Remote Tags Management without a Tag Manager
    • Remote Tags Management with a Tag Manager
    • Tag Management with Google Tag Manager
    • Local script Management
    • Advanced configuration
    • Examples
    • Share the TC String
    • Tag Management setup service
  • Analytics
    • Google Analytics
  • F.A.Q.
    • Integration
      • Is Abconsent compatible with Stape?
      • Is ABConsent compatible with Addingwell?
    • Google Consent Mode V2
      • Google Consent Mode V2 utility
      • News Google Consent Mode V2
      • Advanced mode or basic mode
    • Packaging
      • Cookies management
      • Tags packaging
    • Cookie settings
    • Button operation
    • Button color
    • A/B test
    • Mobile, tablets ...
    • Multi-sites
    • Mobile display
    • Private browsing
    • AMP consent
    • AMP consent button
    • Tags conditionning
    • Google Ads
    • Error 6.1 Google
    • Google PageSpeed
    • Refusal & Targeted ads
    • Mozilla and adblocks
    • Wordpress, Joomla, etc ...
    • Shopify
    • Pricing
      • The Two Types of Licenses
      • What happens when I reach the limit of my monthly plan?
      • Do you offer a trial period?
      • What are the accepted payment methods?
      • Do you offer packages for very high volumes of hits?
      • Are unused hits carried over to the next month?
      • What is considered a Hit?
      • Can I change plans?
    • Content Security Policy (CSP)
    • Google
      • Problem gclid google
      • Google extensions
    • How to Verify the Integration of My CMP?
    • How to Identify the Cookies Present on Your Website?
    • Abconsent CMP is compatible with Taggr ?
  • CMP Services
    • CMP Configuration
    • CMP Integration
    • Tag Conditioning
    • Compliance audit
    • Extra-vendorlist
    • Video-Wall
    • Inventory Partners
    • Consulting
  • Links
    • Configure your CMP
    • Sirdata API
    • Semantic API
    • About Sirdata
    • Analytics Helper
Propulsé par GitBook
Sur cette page
  • Consent needed for cookies
  • Supported tags

Cet article vous a-t-il été utile ?

  1. Script management

Remote Tags Management without a Tag Manager

PrécédentManually display the CMPSuivantRemote Tags Management with a Tag Manager

Dernière mise à jour il y a 5 mois

Cet article vous a-t-il été utile ?

Sirdata CMP allows you to automatically manage your tags on the page upon loading. That is to say to the tags inserted "directly" in the page but not to the tags inserted by a third party tool such as a Tag Manager. To use this feature via a Tag Manager please refer to the next page.

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:

Before loading the partner scripts on your site, it is important to check that the user has given his consent or has not objected to the legitimate interest.

To do so, you can utilize the JavaScript commands available in the CMP API. With Sirdata CMP, you can also proceed to the conditioning of your tags, in a few minutes and a very simple way.

This functionality being integrated within the CMP, it cannot be applied to the tag of your CMP, which must always be deployed as provided in the installation procedure.

Consent needed for cookies

In order to link the loading of a script to the user's consent, you simply need to replace the src attribute with data-cmp-src in the HTML tag. Thus, after having collected the user choices, the CMP will automatically verify that he has given consent to purpose 1 (Store and/or access information on a device) and in which case will load the script on your site.

Most tags involve a prior consent for cookies. This simple change then allows you to meet regulatory requirements, while controlling the scripts that can load on your site.

<script src="https://www.example.com/script.js" type="text/javascript"></script>

becomes:

<script data-cmp-src="https://www.example.com/script.js" type="text/javascript"></script>

In this example the tag is manually integrated. You can see it because there's a space before src. If you see a dot (".") before src, it means the script is inserted by a JavaScript function. In that case, please use the setAttribute option as explained below.

<script>
(function() {
    var s = document.createElement('script');
    s.type = 'text/javascript';
    s.async = true;
    s.src = 'https://www.example.com';
    var _head = document.head || document.getElementsByTagName("head")[0];
    _head.appendChild(s);
})();
</script>

becomes:

<script>
(function() {
    var s = document.createElement('script');
    s.type = 'text/javascript';
    s.async = true;
    s.setAttribute('data-cmp-src','https://www.example.com');
    var _head = document.head || document.getElementsByTagName("head")[0];
    _head.appendChild(s);
})();
</script>

This feature will work only if the tag is inserted directly in the HTML source code of your page and should not be used for tags inserted via a Tag Manager. To use this feature with a Tag Manager, please refer to the next page.

Supported tags

In the table below you will find the list of HTML elements to which the tag conditioning can apply:

Tag

Exemple

<script>

<script data-cmp-src="/script.js" data-cmp-vendor="53" data-cmp-purposes="1,3"></script>

<img>

<img data-cmp-src="/image.png" data-cmp-vendor="22" data-cmp-purposes-li="2" width="1" height="1"/>

<iframe>

<iframe data-cmp-src="/iframe.html" data-cmp-provider="89" width="250" height="200"></iframe>

<embed>

<embed data-cmp-src="/embed.html" data-cmp-vendor="178" width="250" height="200">

<video>

<video data-cmp-src="/video.mp4" controls width="320" height="240"/>

<audio>

<audio data-cmp-src="/audio.ogg" controls/>

<source>

<audio controls><source data-cmp-src="audio-consent.ogg" type="audio/ogg"><source data-cmp-src="audio-li.ogg" type="audio/ogg"></audio>

<track>

<video width="320" height="240" controls><source data-cmp-src="video.mp4" type="video/mp4"><track data-cmp-src="subtitles.vtt"></video>

https://cmp.docs.sirdata.net/v/en/script-management/tag-conditioning-service