Salesforce

OneTrust Cookie Auto-Blocking™

« Go Back
Information
OneTrust Cookie Auto-Blocking™
UUID-cdb2fcad-1640-fdbd-e432-73c5536f0bbd
Article Content

À propos du blocage automatique

OneTrust Cookie Auto-Blocking peut être utilisé pour bloquer automatiquement la définition des cookies sur les appareils des visiteurs du site. Le blocage automatique automatise le processus de définition de vos cookies, scripts et balises en fonction des préférences sélectionnées par les visiteurs du site.

Au lieu d'utiliser un gestionnaire de balises ou d'ajouter manuellement type="text/plain" pour la réécriture de type JavaScript, vous pouvez simplement activer un paramètre pour votre script de bandeau et de centre de préférences, lequel bloquera automatiquement les cookies classés sur votre site.

Fonctionnement

OneTrust Cookie Auto-Blocking utilise vos résultats d'analyse et vos catégorisations pour bloquer automatiquement la définition des cookies avant que le consentement des visiteurs du site ne soit accordé.

Cela dépend des catégories de cookies que vous avez configurées et du modèle de consentement que vous avez sélectionné. Lors du chargement du script sur votre page, les cookies sont bloqués conformément à votre politique de consentement, aux règles de géolocalisation et aux préférences sélectionnées par le visiteur du site.

S'il faut empêcher le déclenchement d'une catégorie de cookies ou si un visiteur du site s'oppose à une catégorie, la technologie de blocage automatique empêchera le déclenchement de cette catégorie.

Le blocage automatique est-il approprié pour votre domaine ?

Cette section vous aidera à déterminer si la fonctionnalité OneTrust Auto-Blocking du module Consentement aux cookies est une solution appropriée pour votre domaine.

  • [en] If you have lots of cookies and/or intensive site content, AutoBlock must be loaded synchronously on the page. If you have a long list of cookies, the download of the AutoBlock script may cause your page to render more slowly than expected. If this is a concern, consider integrating with your tag manager for a more performant implementation. For more information, see Cookie Consent Integration with Google Tag Manager.

  • [en] If you generate revenue from targeted ads AutoBlock.js might impact the timing and order of scripts firing. This can sometimes cause ad targeting libraries to malfunction and impact revenue. The best practice is to use a method other than AutoBlocking for cookies related to ad targeting.

  • [en] If you leverage Bulk Domain Management, due to the nature of web properties, the source URLs for many scripts will change per domain.

[en] If any of the above scenarios are applicable to your domain(s), AutoBlock might not be the best fit for your website. Consider tag manager integration or type-rewriting for your cookie blocking needs. It is still possible to use a combination of solutions, so AutoBlock may be a good fit for some but not all of your cookie blocking.

[en] Implementation Requirements

Exigence

Explication

Le script OtAutoBlock doit être exécuté de manière synchrone.

Si l'attribut asynchrone du script OtAutoBlock est ajouté et que sa valeur est true, l'analyse du reste de la page se poursuit et les balises peuvent se déclencher. Cela peut permettre de définir des cookies avant que le script OtAutoBlock n'injecte les éléments HTML appropriés.

Les scripts OtAutoBlock et otSDKStub doivent être placés dans l'élément <head> par le système de gestion de contenu (CMS) ou directement dans le code HTML.

Si les scripts sont déployés à l'aide d'un gestionnaire de balises, le risque de latence entre le domaine et le gestionnaire de balises est élevé. Cela peut se traduire par le déclenchement des balises avant la fin du script OtAutoBlock.

Si les revenus proviennent de publicités ciblées, il est recommandé d'utiliser des méthodes de blocage manuelles.

Le blocage automatique peut provoquer un comportement inattendu des balises lors du chargement de page et peut avoir un impact sur les revenus publicitaires.

[en] Common Host Blocking

[en] OneTrust AutoBlocking can block commonly identified trackers automatically without the need to locate a source URL. This behavior is configured during publishing. The common hosts are listed below.

Tableau 1. Liste des hôtes communs

addthis.com

addtoany.com

adsrvr.org

amazon-adsystem.com

bing.com

bounceexchange.com

bouncex.net

criteo.com

criteo.net

dailymotion.com

doubleclick.net

everettech.net

facebook.com

facebook.net

googleadservices.com

googlesyndication.com

krxd.net

liadm.com

linkedin.com

outbrain.com

rubiconproject.com

sharethis.com

Taboola.com

twitter.com

vimeo.com

yahoo.com

youtube.com


[en] To enable this functionality, see the Automatically Block Known Tracking Technologies section in l'implémentation des scripts pour des cookies conformes. When enabled, any script on the website inserted by the hosts listed above is mapped to OneTrust’s Targeting category and is only allowed when the user accepts targeting cookies on a site.

[en] Things to Know

  • [en] Cookies may not be detected by the scanner if the related tag is triggered by actions such as form submission, scroll depth, timing delay, etc. These tags will either need to be added manually to OneTrust or blocked using another method.

  • [en] Any cookie categorized as non-essential (Functional, Performance, Targeting, Social Media, or any custom category) that has an accurate source URL will be controlled by auto-blocking. If a cookie is categorized as Strictly Necessary or Unknown, it will not be included in the OtAutoBlock auto-blocking.

  • [en] Cookies set by in-line scripting (e.g., using 'document.cookie' inline) are not supported by auto-blocking functionality. Instead, consider Client-Side Cookie Management type-rewriting for these cookies.

Conditions préalables

OneTrust Cookie Auto-Blocking utilise vos résultats d'analyse et les catégorisations de cookies pour déterminer les éléments à bloquer. Si un cookie n'a pas été détecté par l'analyseur de site ou n'est pas classé, il ne sera pas contrôlé par le script de blocage automatique.

Pour garantir la réussite de l'implémentation du script de blocage automatique, effectuez une nouvelle analyse de votre site avant de commencer l'implémentation, et assurez-vous que tous les cookies sont catégorisés.

Pour implémenter OneTrust Cookie Auto-Blocking

Attention

Vous ne devez jamais déployer cette fonctionnalité sans la valider au préalable dans un environnement de test.

  1. Dans le menu Consentement aux cookies, sous la rubrique Intégration, cliquez sur Scripts. La page Scripts s'affiche.

  2. Sélectionnez le domaine pour lequel vous souhaitez activer le blocage automatique. La page Scripts s'affiche.

  3. Cliquez sur le bouton Publier le test. Le panneau Tester le site Web s'affiche.

  4. Sélectionnez la version du script à publier, puis cliquez sur Confirmer.

  5. [en] Click the Confirm button.

  6. Activez le paramètre Activer le blocage automatique. Le script sera mis à jour pour inclure OneTrust Cookie Auto-Blocking.

    Astuce

    [en] If you’d like to automatically include AutoBlocking for scripts from Common Hosts, select Automatically Block Known Tracking Technologies.

    test_scripts_autoblock.png
  7. [en] Click the Publish Test Scripts button.

  8. Accédez à l'onglet Tester les scripts. Cliquez sur le bouton Copier les scripts pour copier le script, puis placez-le en tant que premier script dans la section head de votre site.

  9. [en] Click the Copy Scripts button to copy the script.

  10. [en] Place the script as the first script in the head section of your site.

    Attention

    [en] The Autoblock.js script must be added directly to the page, not via an injector or tag manager.

    Ce script doit être placé avant tout le reste pour pouvoir fonctionner correctement. S'il n'est pas placé en premier, il ne pourra pas bloquer efficacement la définition des cookies.

    Si un script de bandeau est déjà implémenté sur votre site et que vous souhaitez utiliser le blocage automatique, vous devez le remplacer par le nouveau script généré en activant le paramètre.

  11. Après le test, répétez le processus pour le script de production, et placez le script sur votre site de production.

Note

[en] There may be scripts on your site that you’d like to explicitly exclude from Auto-Blocking. For more information, see Preventing Auto-Blocking from Blocking Scripts.

[en] To unblock source URLs

[en] You can remove source URLs from your AutoBlocking Javascript for greater control over your autoblocking functionality.

  1. [en] On the Cookie Consent menu, select Websites. The Websites screen appears.

  2. [en] Click the name of a website. The Website Details screen appears.

  3. [en] Go to the Auto-Block tab.

  4. [en] Enable the Enable Auto-Blocking setting, if disabled.

  5. [en] Select the source URLs you want to remove from your auto-blocking.

    unblock_bulk_select.png
  6. [en] Click the Unblock Source URL button. A confirmation modal appears.

  7. [en] Click the Confirm button.

[en] To manually block source URLs

  1. [en] On the Cookie Consent menu, select Websites. The Websites screen appears.

  2. [en] Click the name of a website. The Website Details screen appears.

  3. [en] Go to the Auto-Block tab.

  4. [en] Enable the Enable Auto-Blocking setting, if disabled.

  5. [en] Click the Block Source URL button. The Block Source URLs modal appears.

  6. [en] Enter a Source URL for the cookie you want to add to your auto-blocking script.

  7. [en] Click the Search button.

    1. [en] Previously Linked URLs

      1. [en] If the source URL matches to an existing cookie, the existing cookie displays.

        block_known_cookie.png
      2. [en] Click the Block button.

    2. [en] New URLs

      1. [en] If the source URL does not match to an existing cookie, configure the fields.

        add_new_source_URL.png

        [en] Field

        [en] Description

        [en] Link to

        [en] Select an item to which the source URL should be linked.

        • [en] Existing Cookie

        • [en] New Cookie

        [en] Existing Cookie

        [en] Cookie

        [en] If linking to an existing cookie, select the cookie to which the URL belongs.

        [en] New Cookie

        [en] Name

        [en] Enter the cookie name.

        [en] Host

        [en] Enter the host URL.

        [en] Lifespan

        [en] Select Persistent or Session.

        [en] Default Category

        Sélectionnez la catégorie par défaut du cookie. La catégorie sera attribuée à ce cookie dans tous les domaines tant que vous ne la modifiez pas dans la page Catégories avancées.

        [en] If a new domain is scanned and an existing cookie is found, it will be assigned to the Default Category on that domain.

        [en] For more information, see Gestion et catégorisation des cookies.

      2. [en] Click the Block button.

FAQ

1.

[en] When should I use Autoblocking?

[en] OneTrust suggests using autoblock for simpler websites (where you don’t have dynamic URLs firing cookies on the website and where you have fewer cookies, which makes it easier to maintain the AutoBlock file).

Note

[en] You will need to check your autoblock.js file every time a new publish occurs to ensure no new or incorrect URLs are added.

[en] This JavaScript file is available within the scripts in https://cdn.cookielaw.org/consent/(YOUR. DATA DOMAIN ID)/AutoBlock.js

2.

[en] Does the Auto-Blocking script have to be the first element on the site?

[en] Yes, the Auto Blocking script must be the first item in your head section. This is to ensure it runs before any cookies are dropped.

3.

[en] Not all the cookies are being blocked. What do I need to do?

[en] Ensure all cookies on your site have been categorized. Cookies that are uncategorized will not be blocked by the auto-blocking feature. Additionally, any cookies that are categorized as Strictly Necessary will not be blocked by the auto-blocking feature.

[en] Confirm that the correct source URL is linked to the cookie in the OneTrust tool if a cookie is not being blocked. Republish after adding the correct URL and test if the cookie is now being blocked as expected.

[en] Check the consent model being used for your region. If the consent model is Opt-out, then the cookies will be enabled until the site visitor opts out.

[en] Contact OneTrust Support if you experience persistent issues.

4.

[en] How do I check which cookie has the source URL that is breaking my site?

[en] You can export an Excel file that gives you a list of all the cookies and their associated source URL(s). To export this file, follow the steps in the To export you cookie list section of Gestion et catégorisation des cookies.

Important

[en] Disable the Exclude Resource URLs setting on the Cookie Export modal when exporting your cookie list.

cookie_export_modal.png

5.

[en] What happens to newly added, uncategorized cookies on my site?

[en] Cookies will not be blocked until they are categorized, have the correct source URLs included, and the AutoBlock script has been republished to include the new URLs.

6.

[en] When should I use a tag manager versus Auto-Blocking?

[en] Simple integrations are available for all tag managers, giving you a great way to control when tags fire based upon user consent.

[en] With Auto Blocking turned on, new tags are automatically disabled if the tag is in a category blocked and the correct source URLs are present until consent is given.

7.

[en] How do I ensure my Auto-Blocking settings are up to date?

[en] You can rescan your site by using the automatic scan scheduler or by manually initiating a scan. If new cookies are found, you will need to make sure they are categorized with correct source URLs present or they will not be blocked.

[en] After categorizing the new cookies, you will need to publish the script.

8.

[en] Can I use custom category IDs with Auto-Blocking?

[en] Yes, you can use custom category IDs with the Auto-Blocking script. It uses whatever IDs are configured in the tool. The Auto-Blocking script adds the appropriate IDs to the tags that need to be blocked.

9.

[en] Does Auto-Blocking work with iframes embedded directly on the page?

[en] Right now Auto-Blocking will only work for iframes created dynamically on the page, such as advertising iframes that are injected by a JavaScript file.

[en] For iframes embedded directly on page, for example some youtube videos, we recommend following the manual steps to block those iframes.

[en] For more information, see Réécriture manuelle des iFrames dans Consentement aux cookies.

10.

[en] Can I use an Opt-out consent model with Auto-Blocking?

[en] Yes, you can use any consent model with Auto-Blocking. When using an opt-out consent model, cookies are allowed when the user first visits the site. If the users chooses to opt-out or reject a category, cookies belonging to that category are blocked on the website. This also applies to AutoBlocking.

 
Article Visibility
150,227
Translation
French
Not Checked

Powered by