Skip to main content

Policy Popup Section

Use this section to create a cookie consent banner that integrates with Shopify's Customer Privacy API.

This section helps your store comply with privacy regulations by collecting and managing visitor consent for tracking and data collection.


Set up a Policy Popup section

  1. Go to Customize theme
  2. In Theme editor, select any page
  3. Select "Add section""Policy"
Automatic Display

This banner appears automatically based on Shopify's Customer Privacy API logic.


Configuration

Content Settings

Setting nameDescription
Popup textRich text for privacy message. Default is cookie policy notice
Button textAccept button label. Default is "Close and accept"

Technical Features

  • Integrates with Shopify's Customer Privacy API
  • Automatically shows/hides based on visitor consent status
  • Captures consent for:
    • Analytics
    • Marketing
    • Preferences
    • Sale of data (optional)
  • Updates in real-time when consent status changes
  • Theme editor integration for preview purposes

Important Notes

  • Banner visibility is controlled by Shopify's consent tracking system
  • Uses consent-tracking-api version 0.1
  • Consent status is stored and managed by Shopify
  • Consider using a dedicated app for more complex consent management needs
  • Banner appears at the bottom of the page with z-index 9999
Privacy Compliance

This section is essential for stores that need to comply with privacy regulations like GDPR or CCPA. The banner's appearance and behavior are standardized to ensure consistent privacy compliance.

Privacy Policy

Link to your store's privacy policy in the popup text to provide customers with full transparency about data usage.