Troubleshoot Webflow
Cookie banner covers the page or breaks a Webflow site
A cookie banner can obscure content. It can also fail to appear, not be able to be dismissed and result in page pinging.
Possible issues
- Banner is over a button, or is not dismissible.
- Page pings when banner is shown.
- Banner does not show on the live version of the site.
- People are tracked without having had a chance to make a decision.
Check these in order
Investigate in this order. Usually an issue will be identified within the first couple of steps.
- 1
Identify the source of the banner
This may be a consent manager, an embed or bespoke code. Examine both the Site settings > Custom code and the pages’ custom code to identify the relevant script and confirm that it is loading.
- 2
Ensure consent is processed prior to tags
Whilst Webflow usually recommends including scripts in the Footer code and using the async or defer options, a consent manager is a special case. According to Google’s Consent Mode documentation, a base level of consent is first configured and then altered according to people’s decisions. Where a banner is asynchronously loaded, there is a risk that it will not be processed before Google tags. A ‘wait_for_update’ value can therefore be applied to allow the consent manager a short period of time in which to amend the consent setting. Again, adhere to your consent manager’s guidance regarding where to add its script. Confirm that neither analytics nor marketing tags are loaded ahead of this.
- 3
Allocate or superimpose
According to Webflow, post-load banners can cause content to shift. Either allocate a designated area of a specific dimension or superimpose the banner.
- 4
Test functionality
Ensure that all buttons – accept, reject and dismiss – function. The reject option should be no less user-friendly than the accept option. Once dismissed, test the reload function.
- 5
Confirm default tracking setting
If you are utilising Webflow Analyze or Optimize, ensure that your default tracking setting is either ‘Let visitors opt out’ or ‘No default tracking’.
- 6
Confirm the consent hook
Webflow provides a selection of approved consent managers (DataGrail and Finsweet Components). It also provides Browser API hooks which enable the consent status to be retrieved and permission (or refusal) given for tracking, whether using an approved or bespoke consent manager.
- 7
Examine the console
It is possible that a different script is causing the banner script to fail. With DevTools open, inspect the live version of the site for any red errors in the console.
- 8
Test on a mobile
In addition to testing on a desktop, also test the banner at the mobile responsive breakpoint.
Continue with the next task
Choose the page that will assist you with your next decision.