Sidebar, footer and popups

Cookies section

The Cookies section shows Kingdom's cookie banner with Accept and Decline buttons that set the customer's tracking consent in Shopify.

The Cookies section shows a cookie banner with two buttons, Accept all cookies and Decline all cookies. The customer's choice is passed to Shopify as their tracking consent for analytics, marketing and preferences.

Where to find it: Online Store → Themes → Edit theme → Cookies, in the theme editor sidebar after the Footer group.

Set your privacy settings in Shopify

In Shopify admin, open Settings → Customer privacy → Cookie banner and check the regions where your store asks for cookie consent: Kingdom's banner shows only there. To use only Kingdom's banner, choose Remove cookie banner, then set the same regions with Set custom banner regions (or, where your admin does not show it, Edit in the Regions section), so customers do not see two. See Shopify's privacy settings.

Turn on the banner

In the theme editor, select Cookies and turn on Show cookies notice. Save.

Test it in a private window

In the theme editor, select the Cookies section: the banner shows. On your store it appears only to visitors in a consent region, about a second after the page loads. After they select a button it does not come back.

What the buttons do:

  • Accept all cookies gives consent for analytics, marketing and preferences through Shopify's Customer Privacy API.
  • Decline all cookies refuses all three.
  • Shopify keeps the answer and applies it to its pixels, analytics and checkout. The banner does not show again once the visitor has answered, here or in Shopify's own cookie banner.

Since Kingdom 6.3.0 the banner shows only to visitors in the regions where your store asks for cookie consent (Settings → Customer privacy → Cookie banner). With Shopify's automated settings, that is the UK and the EEA when your store has active markets there. Visitors elsewhere never see it.

Before Kingdom 6.3.0 the banner showed to every visitor who had not answered yet, in every country, and remembered the answer only in that browser.

Changing the banner text

The title "Cookies", the message and the button labels are theme texts, not section settings. Change them in Shopify admin → Online Store → Themes → … → Edit default theme content: search for "cookies" to find the texts.

Because Shopify's own cookie banner, or a cookie app, is on as well as Kingdom's. With Shopify's banner, answering either one closes the other. To keep only Kingdom's banner, in Shopify admin → Settings → Customer privacy → Cookie banner choose Remove cookie banner, then set the same regions with Set custom banner regions (or, where your admin does not show it, Edit in the Regions section). Or turn off Show cookies notice in the Cookies section. See Cookie banner apps for GDPR compliance.

Does the banner block tracking until the customer accepts?

Not by itself. Kingdom passes the customer's answer to Shopify, and Shopify then applies it. What happens before the customer answers depends on your Shopify customer privacy settings, which are controlled by Shopify, not by Kingdom. See Cookie consent popup.

Why does the banner not show for me anymore?

Because you already selected Accept or Decline, in Kingdom's banner or in Shopify's, or because you are outside the regions where your store asks for cookie consent. Shopify keeps the answer. To check the banner, select the Cookies section in the theme editor.

All Cookies settings

Every setting in this group, with its type and default.

On this page