Features Pricing Docs Security FAQ Log in EN PL
← 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:

<!-- Consentlane: cookie consent banner (GDPR) + Consent Mode v2 - paste in <head> before Google Analytics / GTM -->
<script>
window.dataLayer=window.dataLayer||[];window.gtag=window.gtag||function(){window.dataLayer.push(arguments)};
gtag('consent','default',{ad_storage:'denied',ad_user_data:'denied',ad_personalization:'denied',analytics_storage:'denied',wait_for_update:500});
window.uetq=window.uetq||[];window.uetq.push('consent','default',{ad_storage:'denied'});
</script>
<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