In this guide, we will cover:
The Manual Blocking procedures must be performed within the code of your website. If you don’t have access or technical knowledge, we recommend choosing another method (blocking via GTM or automatic blocking).
How does blocking work? In summary, manual blocking prevents scripts from being triggered on the website before explicit consent from the visitor is obtained.
The idea behind manual tag blocking is to provide a simple and effective way to control which scripts are executed on your website, waiting for the user's approval. This approach is an alternative to script blocking that does not require developing logic to perform the block. Therefore, manual blocking is a simplified option.
Technical details about how it works - such as in the code - will be explained throughout this guide.
To activate this feature correctly, you need to perform two actions: activate the feature within the AdOpt platform and make the necessary adjustments to your website's code. With both actions completed, the blocking will work properly.
AdOpt Platform. This feature is located within the Tag Scan section, clearly indicated in the “Tag Blocking Settings” card.
Code. To implement manual blocking, you need to add an attribute called "data-adopt" to the scripts you wish to block, with the corresponding "TAG_ID" value. Here's a practical example for blocking the Google Tag Manager (GTM) script:
<script data-adopt="YOUR_TAG_ID" src="https://www.googletagmanager.com/gtm.js"></script>
Make sure to replace "YOUR_TAG_ID" with the specific ID found in the tag panel after scanning your website.
How to Find Your Tag ID:
With this simplified setup, you have full control over which scripts are allowed on your website.
To analyze your website’s current situation accurately, we recommend that you re-run the “tag scan” on your website. Scanning the tags again ensures that they are read as of the present date, and each of their files and cookies will be mapped.
Click on “See details” of the tag and check the label in the “blocked” field. The label should update from “Not blocked” to “blocked.”
All non-required tags must be blocked. If the blocking does not work, we recommend trying another blocking method (via Google Tag Manager, script, or automatic).
AdOpt
Resources
Legal Terms
© GO ADOPT, LLC since 2020 • Made by people who love
🍪