Consentlane
← Back to guides
S
E-commerce

Shopify

Difficulty: Easy Setup time: 3 min

Edit theme.liquid - paste snippet in <head> before Shopify Analytics.

01

Open the theme editor

In your Shopify admin: Online Store → Themes → Actions → Edit code.

02

Open theme.liquid

Layout → theme.liquid. Find the <head> section.

03

Paste snippet

Add just after <meta charset>, BEFORE Shopify analytics and other tags:

<script async src="https://consentlane.com/v1/cl.js?s=YOUR_KEY"></script>
04

Configure Customer Privacy API

Shopify has its own Customer Privacy API. cl.js plays well with it - on marketing consent it calls window.Shopify.customerPrivacy.setTrackingConsent(true). Custom wiring needed - contact us.

Ready to try? The Free plan is enough to start.

Sign up