TL;DR: Shopify Admin → Settings → Apps → Shopify App Store → search Consently → Install → paste your Consently API key → Connect → Enable in theme editor → turn on Consently Cookie Banner → Save. The banner loads on every page of your storefront, and Shopify's own tracking follows each visitor's choice through Shopify's Customer Privacy API.
Overview
The recommended way to add Consently to a Shopify store is the Consently app from the Shopify App Store. You install it from your Shopify admin, connect it to your Consently account with an API key, design your banner inside Shopify, and switch it on as a theme app embed. You don't need to edit any theme code.
Installing through the app gives you:
No code: the banner is added as a theme app embed, so you never edit
theme.liquidSurvives theme updates: the banner keeps working when your theme updates, because it isn't stored in your theme files
Banner editor inside Shopify: choose your compliance framework, layout, colours and wording with a live preview, without leaving your Shopify admin
Shopify Customer Privacy API integration: when a visitor accepts or rejects cookies, Consently passes that choice to Shopify. Shopify Analytics, Web Pixels, sales channel apps and checkout then follow the same choice (see How Consently works with Shopify's Customer Privacy API)
If you'd rather add the script by hand, see Alternative: manual installation by editing theme code. We recommend using the app.
Before You Begin
Make sure you have:
A Consently account (you'll create an API key during setup)
Admin access to your Shopify store, with permission to install apps
Basic familiarity with the Shopify admin interface
Time required: About 5 minutes
How to Install Consently on Shopify
Step 1: Open the Shopify App Store from your admin
Log in to your Shopify store admin at yourstore.myshopify.com/admin. Go to Settings → Apps, then click Shopify App Store in the top-right corner.
Shopify admin Settings → Apps page with the Shopify App Store button highlighted

Step 2: Search for Consently
In the App Store search bar, type Consently and select the Consently app from the suggestions.
💡 Tip: You can also open the listing directly at apps.shopify.com/consently.
Shopify App Store search with the Consently app suggestion highlighted

Step 3: Install the app
On the Consently app listing, click Install.
Consently app listing on the Shopify App Store with the Install button highlighted

Step 4: Approve the installation
Shopify returns you to your admin and shows the Install app dialog with the access the app needs. Review it and click Install.
Shopify Install app dialog for Consently with the Install button highlighted

Step 5: Get your Consently API key
The Consently app opens in your Shopify admin and asks you to Connect your Consently account. Click Get your API key to open your Consently dashboard in a new tab.
Consently app Connect your Consently account screen with the Get your API key link highlighted

Step 6: Create an API key
In the Consently dashboard, click API Keys in the top navigation, then click Create API Key. Give the key a name you'll recognise (for example, the name of your store), then click Create API Key.
Consently dashboard API Keys page with the Create API Key dialog open

Step 7: Copy the API key
Click Copy Key, then click Done.
⚠️ Important: Consently shows the full key only once. Copy it before you close the dialog. If you lose it, create a new key and revoke the old one.
Create API Key dialog with the Copy Key button highlighted

Step 8: Connect your account
Go back to the Consently app in your Shopify admin, paste the key into the API Key field and click Connect.
Consently app with the API key pasted and the Connect button highlighted
The dashboard now shows Connected, and a Set up Consently checklist marks the first step as done. Your store is added to your Consently dashboard automatically.
Consently app dashboard showing Connected status and the Set up Consently checklist

Step 9: Customize your cookie banner
Click Customize banner to open the banner editor. Use the tabs on the left to set up your banner while you watch the live preview:
General: choose your Compliance Framework. IAB TCF 2.3 + Google Consent Mode (Recommended) suits most stores that use Google Ads, Google Analytics or other ad tech. You can also turn on banner settings such as the purpose list and the decline button here
Layout: choose the display style (Box, Bar or Cloud), position, colours and floating revisit button
Content: edit the wording shoppers will see
Consently banner editor General tab with the Compliance Framework options highlighted
When you're happy with the preview, click Save in the bar at the top of the page.
Consently banner editor Layout tab with the Save button highlighted


Step 10: Enable the app embed in your theme
Back on the app dashboard, click Enable in theme editor.
Consently app dashboard with the Enable in theme editor button highlighted
The theme editor opens on the App embeds panel. Make sure Consently Cookie Banner is switched on. The banner appears in the preview. Then click Save in the top-right corner.
💡 Tip: Check that the theme name at the top of the editor is labelled Active. App embeds are switched on for each theme separately, so turn it on in the theme your store actually uses.
Shopify theme editor App embeds panel with Consently Cookie Banner switched on and the Save button highlighted


Step 11: Mark the step as done
Return to the Consently app tab and click Mark as done. The app can't read your theme, so it needs you to confirm this step.
Consently app dashboard with the Mark as done button highlighted
The setup checklist closes and the dashboard shows your connected account.
Consently app dashboard after setup is complete, showing the Step marked as done confirmation

Step 12: Visit your storefront
Open your Shopify store in a new incognito/private browser window to check that the consent banner appears as soon as the page loads.
Shopify storefront in an incognito window showing the Consently cookie banner

Done!
Your Consently banner is now live on your Shopify store.
✅ Success indicator: The consent banner appears on all pages of your storefront, including the homepage, product pages, collections and cart. Your store is also listed under Sites in your Consently dashboard, where you can view its consent log.
Consently dashboard Sites list with the Shopify store highlighted
Shopify-Specific Considerations
How Consently works with Shopify's Customer Privacy API
Shopify has its own consent system, the Customer Privacy API. Shopify's first-party tracking reads from it, so a banner that only blocks third-party scripts doesn't control everything on a Shopify store.
Consently is connected to the Customer Privacy API. When a visitor makes a choice in the Consently banner, Consently records it with Shopify, and Shopify's own tracking (Shopify Analytics, Web Pixels, sales channel apps and checkout) follows the visitor's choice through the Customer Privacy API.
Consently sets all four Shopify consent purposes from the same Google Consent Mode signals it sends to Google:
Shopify Customer Privacy purpose | Set from Google Consent Mode signal |
|---|---|
|
|
|
|
|
|
|
|
Because Shopify and Google get their answer from the same signals, one visitor's choice can't give them different answers. If a visitor rejects advertising cookies, Google and Shopify's marketing tracking both receive that rejection.
You don't need to set anything up for this. It works as soon as the app embed is on.
Theme Updates and Theme Changes
Because the app adds the banner as a theme app embed rather than editing theme.liquid, theme updates don't remove it. You don't need to re-add anything after updating your theme.
App embeds are switched on per theme. If you publish a different theme (or a duplicate you've been working on), open the theme editor for that theme, go to App embeds, switch on Consently Cookie Banner and click Save.
Checkout Pages
Shopify doesn't let apps or theme code display a banner on its checkout pages, so the Consently banner appears on every storefront page up to checkout but not in checkout itself.
How this affects compliance:
The banner appears on the storefront and cart before customers go to checkout
Consent is collected before visitors enter the checkout flow
Consently passes the visitor's choice to Shopify through the Customer Privacy API, so Shopify's checkout tracking follows the consent already given on the storefront
If you have questions about your checkout setup, contact Consently support.
Alternative: Manual Installation by Editing Theme Code
You can still install Consently by pasting the embed script into your theme. Use this method only if you can't use the app. It isn't updated automatically, and you'll need to re-add the script after every theme update.
⚠️ Important: Use either the app or the manual script, not both. If you have both, the banner loads twice. If you're moving to the app, remove the manual script from theme.liquid first.Back up your theme: Shopify Admin → Online Store → Themes → Actions → Duplicate. Shopify doesn't keep version history for theme files, so this copy is your backup
On your current theme, click Actions → Edit code
Under Layout, open theme.liquid
Search for
</head>(Ctrl+ForCmd+F)On a new line immediately before
</head>, paste your Consently script:
<!-- Start Consently Banner -->
<script src="https://app.consently.net/consently.js" data-bannerid="YOUR_BANNER_ID"></script>
<!-- End Consently Banner -->
</head>Click Save, then check your storefront in an incognito window
⚠️ Important: The script must go BEFORE the closing</head>tag, not after it. Putting it after</head>or inside<body>can delay loading or cause blocking problems.
To restore your backup if something goes wrong: Online Store → Themes → find your backup theme → Actions → Publish.
For the general rules on placing the script, see Direct HTML Installation.
What's Next
Now that Consently is installed on your Shopify store, you should:
Test your installation to check that the banner loads correctly and blocks cookies
Customize your banner content to match your store's branding
Troubleshooting
The Connect button doesn't accept my API key
Why this happens: The key may not have been copied in full, may include extra spaces, or may have been revoked or deleted in the Consently dashboard.
Solution:
In your Consently dashboard, go to API Keys and check that the key is listed as Active
If you no longer have the full key, click Create API Key to make a new one and copy it with Copy Key
Paste it into the API Key field in the Consently app without any extra spaces, then click Connect
The banner doesn't appear on my storefront
Why this happens: The app embed may be switched off or not saved, it may be on in a theme that isn't your live theme, or the banner may not be published in Consently.
Solution:
Open the Consently app and click Enable in theme editor
Check that the theme at the top of the editor is labelled Active
In App embeds, make sure Consently Cookie Banner is switched on, then click Save
Check that your banner is published in the Consently dashboard
Clear your browser cache or test in an incognito window. If you already accepted or rejected cookies in this browser, you'll see the floating revisit button instead of the full banner
The banner appears on some pages but not others
Why this happens: The banner doesn't appear on Shopify's checkout pages, which is expected. If you installed manually, some pages may use a different layout file that doesn't contain the script.
Solution:
If the missing pages are checkout pages, nothing needs fixing. Consent is collected on the storefront and passed to checkout through the Customer Privacy API
If you installed with the app, check that the app embed is on and saved in your live theme (see the previous issue)
If you installed manually, check that the script is in Layout/theme.liquid, not in a specific template like Templates/product.liquid
For a manual install, also check whether your theme uses a custom layout for certain pages: search your theme files for
layout: alternate. If alternate layouts exist, add the Consently script to those layout files as well, or switch to the app, which covers all theme pages
The banner appears twice
Why this happens: The Consently app embed is switched on and the manual script is also still in theme.liquid.
Solution:
Go to Online Store → Themes → Actions → Edit code → theme.liquid
Delete everything from
<!-- Start Consently Banner -->to<!-- End Consently Banner -->Click Save
The banner disappeared after I changed themes
Why this happens: App embeds are switched on for each theme separately. A newly published theme starts with the Consently embed switched off. (Theme updates don't affect it.)
Solution:
Open the Consently app and click Enable in theme editor
Switch on Consently Cookie Banner and click Save
If you installed manually, theme updates replace theme.liquid. Re-add the script before </head>, or switch to the app so this doesn't happen again.
My banner changes aren't showing on the storefront
Why this happens: Changes in the banner editor aren't applied until you save them.
Solution:
Open the Consently app and click Customize banner
If you see Unsaved changes at the top of the page, click Save
Reload your storefront in an incognito window
I see the banner code, but the banner still doesn't work
Why this happens: JavaScript errors or conflicts with other Shopify apps may stop the banner from starting.
Solution:
Open your store's homepage and press
F12to open the browser developer toolsClick the Console tab and look for error messages mentioning
consently.jsIf you see errors, take a screenshot and contact Consently support
Temporarily disable other Shopify apps one at a time to find the conflict
The banner covers my store's header or navigation
Why this happens: The banner's position may overlap your theme's layout.
Solution:
Open the Consently app, click Customize banner and select the Layout tab
Change the Position setting (try Bottom instead of Top, or vice versa)
Change the Display Style (Box, Bar or Cloud)
Turn on Disable Website Interaction if you want an overlay that blocks clicks until the visitor makes a choice
Click Save
Related Pages
Direct HTML Installation: core concepts for script placement
Banner Layout & Positioning: adjust how the banner looks