Lantern's Advanced Analytics respects your customers' cookie consent settings.
If a customer declines analytics cookies, Lantern will not load Google Analytics tracking, set Google Analytics cookies, or send quiz events to your configured Google Tag ID. The event stream behind Lantern's own Advanced Analytics dashboards is gated by the same consent.
Your core Lantern quiz analytics are not affected by cookie consent. Quiz starts, completions, conversions and revenue continue to be tracked in your Lantern dashboard because these metrics do not rely on analytics cookies.
How it works
Lantern uses Shopify's Customer Privacy API to determine whether analytics tracking is allowed.
This means Lantern works with any cookie consent platform that syncs its consent choices with Shopify's Customer Privacy API. It is not limited to a specific consent provider.
Cookie consent is respected across all quiz display methods, including the in-store quiz page, embedded quizzes, pop-up quizzes and standalone URL quizzes displayed inside your Shopify store.
Which consent platforms are supported?
Lantern works with any consent management platform that writes consent choices to Shopify's Customer Privacy API.
This includes Shopify's own consent banner as well as many popular third party solutions.
Shopify Customer Privacy
If you're using Shopify's built-in cookie banner (Settings → Customer Privacy), no additional setup is required.
Shopify Apps
Many Shopify apps automatically sync consent with Shopify's Customer Privacy API, including:
Cookiebot by Usercentrics
Pandectes GDPR Compliance
Consentmo GDPR
CookieYes
Please refer to each provider's documentation for installation and setup instructions.
Standalone Consent Platforms
Standalone consent platforms can also work with Lantern, provided they are configured to sync with Shopify's Customer Privacy API.
Examples include:
Usercentrics Web CMP
OneTrust
CookieHub
Most providers offer setup guides explaining how to enable Shopify consent syncing.
Important requirement
For Lantern to respect cookie consent, your consent platform must be connected to Shopify's Customer Privacy API.
If your consent banner does not sync with Shopify's privacy API, Lantern cannot determine whether analytics tracking has been accepted or declined.
This typically affects generic cookie banners or custom implementations that do not integrate with Shopify's consent system.
How can I check if my consent banner is working?
If you're unsure whether your consent platform is connected correctly, first decline analytics cookies using your cookie banner.
Then open your browser's developer console and run:
Shopify.loadFeatures([{ name: 'consent-tracking-api', version: '0.1' }], () => console.log('analytics allowed:', Shopify.customerPrivacy.analyticsProcessingAllowed()));If everything is configured correctly, the console should return:
analytics allowed: false
If it returns true after declining analytics cookies, your consent platform is not correctly synced with Shopify's Customer Privacy API. Please refer to your consent provider's setup guide.
Known limitation
If a customer opens a standalone quiz link directly without first visiting your Shopify storefront, no cookie consent has been collected yet. In this situation, analytics tracking will be enabled by default.
For quizzes that are embedded in your store, opened as pop-ups, or displayed as Shopify pages, consent is collected through your storefront first, so cookie preferences are respected automatically.
