Lantern's Advanced Analytics respects your customers' cookie consent settings.
What cookie consent controls
The customer's consent choices decide which tracking Lantern loads inside your quiz:
Google Analytics (a GA4 measurement ID starting with G- in the Google tag field): loads only when the customer allows analytics cookies. If they decline analytics cookies, Lantern does not load Google Analytics or send quiz events to this ID.
Google Tag Manager or Google Ads (an ID starting with GTM- or AW-): loads as soon as the customer allows either analytics or marketing cookies.
Shopify custom pixels subscribed to Lantern's customer events: Shopify applies the customer's consent to the pixel itself.
Meta Pixel and Meta Conversions API: events are sent only when the customer allows marketing cookies.
When Lantern loads your Tag Manager container, it passes the customer's consent to it as Google Consent Mode signals. Analytics consent sets analytics_storage. Marketing consent sets ad_storage, ad_user_data and ad_personalization. Tags inside your container then follow the consent settings you've given them in Tag Manager.
If your store doesn't require consent in a customer's region, all consent is treated as granted.
The event stream behind Lantern's own Advanced Analytics dashboards is gated by analytics 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.
To learn more about the tracking these settings control, see:
Track quiz events with your own tools: Tag Manager, Google Ads, Clarity, Northbeam and custom scripts covers Tag Manager, Google Ads, Shopify custom pixels and your own scripts.
Google Analytics Custom Events & Dimensions lists the quiz events Lantern sends to Google.
Meta Pixel Integration and Meta Conversions API: send quiz events from Lantern's server cover Meta tracking.
Lantern's own cookies
Lantern uses up to three small functional cookies. They are needed for the quiz to work and are not used for tracking:
One remembers the page the shopper was on before opening the quiz, so the quiz can return them there when they finish or close it. The quiz popup remembers in the browser’s local storage that it was already shown, so it doesn’t open again on every page.
One remembers a finished quiz so returning shoppers see their results. This only applies when the quiz is set to return to results.
One keeps a shopper on the same quiz version during an A/B test.
If a shopper arrives from an ad, the quiz keeps the ad’s UTM parameters for that browser tab, so product links credit the ad.
These cookies are functional. Lantern doesn't use them for analytics or advertising. Whether they need to be listed in your cookie banner depends on the rules that apply to your store, so check with your privacy advisor if you're not sure.
How it works
Lantern uses Shopify's Customer Privacy API to determine whether analytics and marketing 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.
