The GDPR Consent Banner helps you comply with privacy regulations by collecting visitor consent before enabling tracking. This feature displays a customizable banner that allows visitors to accept or decline tracking cookies.

Note: The GDPR Consent Banner is a Pro plan feature. Upgrade your plan to access this feature.

Overview

The GDPR Consent Banner feature allows you to:

  • Display a privacy consent banner to visitors
  • Customize banner text, colors, and buttons
  • Target specific regions (EU) or all visitors
  • Integrate with Google Consent Mode V2
  • Comply with GDPR, CCPA, and other privacy regulations

Several privacy regulations require consent for tracking:

RegulationRegionRequirement
GDPREuropean UnionExplicit consent required
UK GDPRUnited KingdomExplicit consent required
CCPACalifornia, USAOpt-out right required
LGPDBrazilConsent required
POPIASouth AfricaConsent required

Google Requirements

Google Consent Mode V2 is now required for:

  • Google Ads remarketing
  • Full conversion tracking
  • Audience building
  • Analytics without data gaps

Accessing GDPR Banner Settings

  1. Open the Analyzely app from your Shopify Admin
  2. Click GDPR Banner in the sidebar navigation
  3. The banner configuration page will load

Live Preview

The page displays a live preview of your banner:

  • Shows exactly how the banner will appear on your store
  • Updates in real-time as you make changes
  • Displays Accept and Decline buttons

Preview Updates

As you change settings, watch the preview update:

  • Text changes appear immediately
  • Color changes reflect instantly
  • Button text updates in real-time

Activation

Enabling the Banner

  1. Locate the Consent Banner Activation toggle
  2. Toggle it to ON to enable the banner
  3. The banner will appear on your store after saving

Theme Integration

For the banner to appear on your store:

  1. Ensure the app is activated in your theme’s App Embeds
  2. The consent banner uses Shopify’s built-in Customer Privacy API
  3. No additional theme code is required

Display Setup

Region Selection

Choose where to display the consent banner:

All Regions

  • Banner shows to all visitors worldwide
  • Recommended for global compliance
  • Simplest approach

Specific Region

  • Banner shows only to visitors from selected regions
  • Choose EU Region to target European visitors
  • Reduces friction for non-EU customers

To configure region targeting:

  1. Select All Regions or Specific Region
  2. If Specific Region, check EU Region
  3. Save your settings

Note: Region detection is based on IP address and may not be 100% accurate.

Content Setup

Customize the main message displayed in the banner:

  1. Enter your consent message in the Banner Text field
  2. Keep it clear and concise
  3. Explain what you’re collecting and why

Example banner text:

We use cookies to enhance your browsing experience and analyze site traffic.
By clicking "Accept", you consent to our use of cookies.

Best practices for banner text:

  • Keep it under 2-3 sentences
  • Be specific about cookie usage
  • Avoid legal jargon
  • Make it easy to understand

Connect visitors to your privacy policy:

Privacy Policy URL

  1. Enter the full URL to your privacy policy page
  2. Default: https://yourstore.com/policies/privacy-policy
  3. Must be a valid, accessible URL

Privacy Policy Link Text

  1. Customize the link text displayed
  2. Default: “Privacy Policy”
  3. Examples: “Learn More”, “Read our Privacy Policy”

Button Text

Customize the button labels:

Accept Button

  1. Enter text for the accept button
  2. Default: “Accept”
  3. Examples: “Accept All”, “I Agree”, “Allow Cookies”

Decline Button

  1. Enter text for the decline button
  2. Default: “Decline”
  3. Examples: “Reject”, “No Thanks”, “Deny”

Color Setup

Customize the banner appearance:

Banner Background Color

  • Sets the background color of the banner
  • Default: Blue (#0e99f6)
  • Choose a color that matches your brand

Banner Text Color

  • Sets the color of the banner message
  • Default: White (#ffffff)
  • Ensure good contrast with background

Accept Button Colors

Accept Button Background

  • Sets the accept button background color
  • Default: White (#ffffff)
  • Make it stand out to encourage acceptance

Accept Button Text

  • Sets the accept button text color
  • Default: Black (#000000)
  • Ensure readability

Decline Button Colors

Decline Button Background

  • Sets the decline button background color
  • Default: Transparent
  • Often styled more subtly than Accept

Decline Button Text

  • Sets the decline button text color
  • Default: White (#ffffff)
  • Must be readable against banner background
  • Sets the color of the privacy policy link
  • Default: Black (#000000)
  • Should be visually distinct as a link

How the Banner Works

User Flow

  1. Visitor arrives: Banner appears at bottom of screen
  2. Visitor reads: Message explains tracking purpose
  3. Visitor chooses:
    • Accept: Full tracking enabled
    • Decline: Only essential cookies used
  4. Choice saved: Cookie stores preference
  5. Future visits: Banner does not reappear

When paired with Google Consent Mode V2:

Consent StatusAnalytics BehaviorAds Behavior
Not yet givenCookieless pings sentLimited signals
AcceptedFull tracking enabledFull remarketing
DeclinedNo cookies setConversion modeling only

Shopify Customer Privacy API

The banner integrates with Shopify’s Customer Privacy API:

  • Automatically detects customer region
  • Stores consent preferences
  • Syncs with Shopify’s consent management
  • Works with Shopify’s privacy features

Saving Your Settings

After making changes:

  1. A save bar appears at the top of the page
  2. Click Save to apply your changes
  3. Wait for the confirmation message
  4. Click Discard to undo changes

Best Practices

Design Recommendations

ElementRecommendation
Banner positionBottom of screen (default)
SizeMinimal but readable
ColorsMatch your brand, ensure contrast
Accept buttonMake it stand out
Decline optionAlways provide one

Text Recommendations

ElementBest Practice
MessageClear, concise, honest
Length1-3 sentences
ToneFriendly, not legal
Privacy linkAlways include

Common Mistakes to Avoid

  • Hidden decline option: Always make decline visible
  • Pre-checked consent: Not compliant with GDPR
  • Blocking content: Banner should not prevent site use
  • No privacy policy: Always link to your policy
  • Vague language: Be specific about what you track

Testing Your Banner

Preview Testing

  1. Make your configuration changes
  2. Watch the live preview update
  3. Verify text and colors look correct
  4. Check button text is clear

Live Testing

  1. Save your settings
  2. Visit your store in an incognito/private window
  3. Verify the banner appears
  4. Click Accept and verify it disappears
  5. Clear cookies and test Decline option

Regional Testing

If using region-specific display:

  1. Use a VPN to test from different regions
  2. Verify banner appears for EU IP addresses
  3. Verify banner behavior for non-EU addresses

Troubleshooting

  1. Verify the banner is enabled (toggle ON)
  2. Check app is activated in theme App Embeds
  3. Clear your browser cache
  4. Try an incognito/private window
  5. Verify you are in the targeted region
  1. Region detection is based on IP
  2. VPN users may show incorrect region
  3. Some ISPs may have incorrect geolocation
  4. Consider using “All Regions” for consistency
  1. Click the Save button
  2. Wait for confirmation message
  3. Check for validation errors
  4. Refresh the page and try again
  1. Verify the URL is correct and complete
  2. Include https:// in the URL
  3. Test the URL directly in your browser
  4. Ensure your privacy policy page exists

Compliance Notes

What This Feature Provides

  • A visible consent collection mechanism
  • User choice between Accept and Decline
  • Integration with Google Consent Mode
  • Preference storage for return visitors

What You Are Responsible For

  • Accurate privacy policy content
  • Honoring user choices
  • Compliance with your specific jurisdictions
  • Legal review of your privacy practices

Disclaimer: This feature helps with compliance but does not guarantee legal compliance. Consult with a legal professional for specific requirements.