Skip to content
Install guide · Shopify

Add a cookie banner & accessibility to Shopify

About five minutes in your theme code, from Shopify admin. One file, layout/theme.liquid, covers every page of your store.

Installation steps

1

Open your theme code

In Shopify admin open Online Store › Themes, then ⋯ › Edit code on your live theme.

2

Paste the snippet first in <head>

Open layout/theme.liquid and paste the snippet on the line right after <head>. Save.

3

Hold your Google and Meta tags

Required if theme.liquid has Google Analytics or Meta Pixel tags: in the same file, change each one to type="text/plain" with data-cookieconsent="analytics" (Google) or "marketing" (Meta), as in the example under "Hold them until consent". Without it the browser still downloads them before the visitor agrees.

4

Turn off Shopify's own cookie banner

If Shopify's own cookie banner is on (Settings › Customer privacy › Cookie banner), open its ⋯ menu and choose Remove cookie banner, so visitors don't see two banners.

<script src="https://www.complymo.com/embed/v1.js" data-project="cw_your_key" data-autoblock="1"></script>

Copy your snippet from Install in your dashboard (Home, or a site's Widget tab) and put it first in the <head>, before any analytics tag.

Cookie consent and accessibility, free for 14 days

Paste one line of code today. The banner and the menu go live on your next page load.

14-day free trial · card needed to start, cancel before day 14 and you pay nothing