1. Log in to your Shopify admin panel
2. Go to Online Store > Themes
3. Click Actions > Edit code on your active theme
4. Open the theme.liquid file (under Layout)
5. Find the section
6. Paste the LegalBanner script tag just before :
``html
`
7. Click Save
Shopify Checkout
The LegalBanner script runs on your storefront pages. Shopify's checkout is hosted on a separate domain and has limited script injection options.
For Shopify Plus stores, you can add the script to checkout via Settings > Checkout > Additional scripts.
Shopify and Cookie Scanner
The LegalBanner cookie scanner will detect common Shopify-related cookies and scripts:
Shopify analytics (
_shopify_s, _shopify_y`)
Shopify session cookies (categorized as Essential)
Any third-party apps installed from the Shopify App Store
Important Notes
Clear Shopify's theme cache after adding the script
The script is compatible with all Shopify themes (Dawn, Debut, custom themes)
Shopify's own essential cookies are automatically categorized as Essential