How to hide the cookie banner on a specific web page?
How to hide the cookie banner on some web pages?
Here's a step-by-step guide on how to hide the cookie banner on a specific web page:
Log into your GTM account and navigate to the Triggers section. Click on New to create a new trigger.
For the trigger type, select Consent Initialization.
In the trigger configuration, choose to fire this trigger on Some Pages.
Select the Page URL from the dropdown menu.
Choose Does not equal and then enter URL of the page where you don't want the cookie banner to appear.
Click Save to save your new trigger.
Now, you need to apply this new trigger to the CookieScript tag:
Go to the Tags section in your GTM account and find the CookieScript tag.
Replace the existing trigger with the new custom trigger you just created.
Save your changes.
Done. This will ensure that the cookie banner is displayed on all pages except the one you specified.
See also the following guides:
Did this answer your question?