Some privacy regulations require that visitors can access their consent preferences at any time — not only when the banner first appears. You can add a Privacy Settings link to your store's footer so visitors can reopen the consent panel whenever they want.
What this link does
Clicking the link calls the Cookiebot CMP function that opens the second layer of the consent banner (the detailed preferences panel). This allows visitors to review or change their consent choices after the initial banner has been dismissed.
Step 1 — Open the theme code editor
- In your Shopify admin, go to Online Store → Themes.
- Next to your active theme, click Actions → Edit code.
Step 2 — Find the footer file
- In the left-hand file browser, open the Sections folder.
- Look for
footer.liquidorfooter-group.liquid(the exact filename depends on your theme).
Step 3 — Add the Privacy Settings link
Locate the section of the footer file where navigation links are rendered. This is usually inside a <ul> list or a <div> containing anchor tags. Add the following HTML at a suitable point within that block:
<a href="#" onClick="__ucCmp.showSecondLayer();">Privacy Settings</a>
If the footer links are wrapped in <li> elements, add the link inside a list item to match the existing structure:
<li> <a href="#" onClick="__ucCmp.showSecondLayer();">Privacy Settings</a> </li>
Note
You can change the link label to match your store's language or style (for example, Cookie Preferences or Manage Cookies). The function call — __ucCmp.showSecondLayer() — must remain exactly as shown.
Step 4 — Save and verify
- Click Save in the top-right corner of the code editor.
- Visit your storefront and scroll to the footer to confirm the link appears.
- Click the link to verify it opens the consent preferences panel.
Note
If the link appears but clicking it does nothing, confirm that the Cookiebot app embed is enabled in your active theme (Online Store → Themes → Customize → App embeds). The __ucCmp object is only available when the Cookiebot CMP is loaded on the page.
Important
This link only works on storefront pages where the Cookiebot CMP script is loaded. It will not function inside the Shopify checkout, as third-party scripts are restricted there by Shopify.
Comments
0 comments
Please sign in to leave a comment.