Platforms
Shopify
Install allowedit on a Shopify store by adding the script to theme.liquid, and learn how it works with Shopify's own Customer Privacy settings and apps.
You add allowedit to a Shopify store by pasting the script tag into your theme. There is no allowedit app to install. It takes about five minutes.
Before you start
- Create a free account, add your store's domain and copy your script tag from the dashboard (open the site; it's on the Overview).
- If you use another cookie banner app, plan to turn it off once allowedit is live. Two banners confuse visitors and fight over the same scripts.
1. Add the script to theme.liquid
- In Shopify admin, go to Online Store, then Themes.
- On your current theme, open the … menu and choose Edit code.
- Under Layout, open
theme.liquid. - Find the opening
<head>tag and paste your script on the line right after it, above everything else:
<head>
<script src="https://allowedit.com/c/<siteId>.js"></script>
...
- Save.
2. Check checkout and other layouts
Most themes use theme.liquid for every storefront page. Some also have other layout files (for example a password page layout). Add the tag to those too if they load tracking.
Shopify's checkout is controlled by Shopify, and theme code doesn't run there on most plans. Tracking on checkout is handled by Shopify's own pixels and its customer privacy settings.
How allowedit fits with Shopify's privacy tools
Shopify has its own customer privacy settings and a built-in cookie banner, and apps and pixels added through Settings, Customer events run in Shopify's sandbox. Those pixels follow Shopify's Customer Privacy API, not tags on your page.
- Use one banner. If you use allowedit, turn off Shopify's built-in cookie banner in your store's customer privacy settings, so visitors only see one.
- Theme scripts (anything in
theme.liquid, snippets or app embeds that add script tags to the page) are covered by allowedit's blocking and Consent Mode. - Shopify pixels in the sandbox read consent through Shopify's Customer Privacy API. Check each app's documentation for how it handles consent, and review the Customer events page after switching.
Google and Meta channels
If Google and YouTube or Meta are connected through their Shopify sales channel apps, their tags are managed by those apps. Google tags you add yourself in the theme read the Consent Mode signals allowedit sets. The Meta Pixel added directly to the theme is held by auto-blocking until the visitor allows marketing.
If you run Google Tag Manager in your theme, keep the allowedit script above the GTM snippet. See Google Tag Manager.
App scripts
Apps for reviews, chat, upsells and analytics often inject scripts into your storefront. allowedit recognises common trackers and holds them until consent. For an app it doesn't recognise:
- Add a custom URL rule under Banner, then Blocking, with part of the app's script URL and a category. See Auto-blocking and custom rules.
- Or, if you can edit where the script is printed, mark it yourself.
Some apps are strictly necessary for the store to work (cart, currency or fraud checks). Don't block those.
3. Add a cookie settings link
Add a footer menu item in Online Store, then Navigation, with the link #cookie-settings. Clicking it opens the preferences panel, so customers can change their choice.
4. Check it works
- Open your store in a private window.
- Choose Reject all.
- In your browser's developer tools, check that no marketing cookies such as
_fbpappear. - In your dashboard, run a scan. It lists every cookie your theme and apps set and flags any set before consent.
Shopify sets some cookies of its own for the cart and checkout. They're necessary for the store to work, and the scanner categorises the common ones for you.
Still stuck? Email support@allowedit.com with your site's address and what you see.