β How to Let Visitors Close or Collapse the Cookie Banner
You can let visitors collapse your cookie banner to a slim bar or close it with an X button. This is useful when the banner covers part of a page, but it works differently from a normal Accept or Decline choice.
β οΈ Before You Begin
Make sure:
- GDPR EU Cookie Banner is installed and the App Embed is enabled
- Your banner is published
π‘ These two options are in the Behavior tab, in a card called Banner controls.
π οΈ Step 1 β Open Banner Controls
β‘οΈ Open GDPR EU Cookie Banner β Banner settings
β‘οΈ Click the Behavior tab
β‘οΈ Scroll to Banner controls
βοΈ Step 2 β Choose the Controls
Show collapse icon
Allow customers to collapse/expand banner content
When ticked, a small arrow appears in the banner. Clicking it shrinks the banner to a slim bar and clicking it again expands it.
Show close icon
Allow customers to close banner with 'X' button
When ticked, an X appears in the top-right corner of the banner.
You can tick one, both, or neither.
πΎ Step 3 β Style the Icons (Optional)
β‘οΈ Open the Design tab
β‘οΈ Find the icon settings
- Close icon color
- Arrow icon color
β‘οΈ Click Save
π What Happens When a Visitor Uses Them
Collapse
- The banner shrinks to a slim bar
- The text and buttons are hidden
- The visitor can expand the banner again at any time
Close (X)
- The banner disappears
- No consent choice is saved
- Non-essential cookies stay blocked, because the visitor did not accept (with the Decline only banner type, all cookies are allowed by default instead)
- The banner will appear again on the next page load, until the visitor clicks Accept, Decline, or saves preferences
Re-open button
If you want visitors to bring the banner back after closing it:
β‘οΈ Open Behavior β Re-open banner
β‘οΈ Tick Show re-open button
A small button stays in the corner of the screen so visitors can open the banner again. After closing the banner with the X, this button appears.
π‘ Do not confuse this with Display after your page loads, which delays how long the banner waits before it appears.
π§ͺ Expected Result
- The preview in the app shows the arrow and X icons when you tick them
- On your storefront, the arrow collapses the banner and the X hides it
- After closing, the banner returns on the next page
π οΈ Troubleshooting
I do not see the icons on the storefront
- Confirm the options are ticked and you clicked Save
- Test in an Incognito or Private window
Closing the banner did not stop tracking
Closing is not consent and does not save a choice. If your tracking tools do not run after a visitor closes the banner, that is expected. See π Tracking Stopped After Installing the Cookie Banner [Fixed].
The banner keeps coming back
This is expected until the visitor makes a choice.
β οΈ Important Notes
- Closing or collapsing the banner is not the same as accepting or declining
- The Checkout tab only contains the Visible at checkout option. See π³ How to Show the Cookie Banner at Checkout and Customer Account Pages
π Final Result
β Visitors can collapse the banner or close it
β Closing does not record consent
β A re-open button can bring the banner back