Follow the steps below to enable Auto Blocker for your Consent Banner.
Enable Auto Blocker
Check the "Enable Auto Blocker" option on the "Embed Consent Banner" page in your Termly dashboard.
Add the Consent Banner script before all other scripts in the <head> section of every page on your site.
It is critical that you load the Consent Banner before all other scripts so Auto Blocker can intercept them before a visitor has opted in or out. Failing to do this can result in your site not being compliant with GDPR and other international data regulations.
If your Consent Banner code snippet looks like the example below, you are using an older code snippet that does not include Auto Blocker. You will need to replace your code snippet with the new one found in your dashboard to get Auto Blocker functionality.
Auto Blocker Attribute
Auto Blocker is controlled within your Consent Banner code snippet under the data-auto-block attribute. A consent banner code snippet with Auto Blocker enabled looks like this:
A consent banner code snippet with Auto Blocker disabled looks like this: