Cookie Consent

2 min read

Overview #

The Cookie Consent feature helps your WooCommerce store comply with global privacy laws by displaying a professional consent popup to visitors. Users can accept all cookies, decline non-essential cookies, or customize their preferences by category.

With Swift Commerce, you get a fully customizable cookie consent solution without needing a separate plugin. The popup supports multiple templates, positions, themes, and integrates seamlessly with your store’s design.

Requirements #

  • Swift Commerce Free 1.0.0+
  • WooCommerce 7.0+
  • WordPress 6.0+

Getting Started #

Step 1: Enable the Feature

  1. Navigate to Swift Commerce in your WordPress admin menu
  2. Click on Cookie Consent from the features list
  3. Toggle the Enable switch to activate the feature
  4. Click Save Changes

Step 2: Configure Your Consent Message

  1. Go to the General tab
  2. Customize the following text fields:
    • Title – The heading displayed on the popup (e.g., “We Value Your Privacy”)
    • Message – Your consent explanation text
    • Accept Button Text – Text for the accept button (e.g., “Accept All”)
    • Decline Button Text – Text for the decline button
    • Settings Button Text – Text for the cookie preferences button
  3. Add your Privacy Policy URL to link to your privacy page
  4. Click Save Changes

Settings Reference #

General Tab

Content Settings

SettingDescriptionDefault
TitleHeading text for the popup“We Value Your Privacy”
MessageMain consent explanation textCookie usage explanation
Accept Button TextText on the accept button“Accept All”
Decline Button TextText on the decline button“Decline”
Settings Button TextText on the preferences button“Cookie Settings”
Privacy Policy TextLink text for privacy page“Privacy Policy”
Privacy Policy URLURL to your privacy policy(empty)
Show Decline ButtonDisplay the decline optionYes
Show Settings ButtonAllow users to customize preferencesYes
Show Privacy LinkInclude link to privacy policyYes

Cookie Categories

Define which cookie categories users can control:

CategoryDescriptionRequired
NecessaryEssential cookies for site functionalityYes (cannot be disabled)
AnalyticsCookies for understanding visitor behaviorNo
MarketingCookies for personalized advertisementsNo
FunctionalCookies for enhanced features and personalizationNo

Appearance Tab

Template Options

TemplateDescription
DefaultStandard banner with icon and buttons
MinimalClean, simplified design
FloatingCompact floating card
Custom (Pro)Fully customizable design

Position Options

PositionDescription
BottomFull-width banner at bottom of screen
TopFull-width banner at top of screen
Bottom LeftFloating card in bottom-left corner
Bottom RightFloating card in bottom-right corner
CenterCentered modal with optional overlay

Theme Options

ThemeDescription
LightWhite background with dark text
DarkDark background with light text
AutoMatches user’s system preference

Style Settings

SettingDescriptionDefault
Primary ColorButton and accent colorViolet (#7c3aed)
Background ColorPopup backgroundWhite (#ffffff)
Text ColorMessage text colorDark gray (#1f2937)
Border RadiusCorner roundness8px
Show IconDisplay privacy shield iconYes
AnimationEntry animation (slide, fade, none)Slide
Blur BackgroundBlur page behind popupNo
Show OverlayDim background behind popupNo

Behavior Tab (Pro)

Control how the consent popup displays and interacts with visitors.

SettingDescriptionDefault
Show DelaySeconds before showing popup0 (immediate)
Auto HideHide popup after acceptanceNo
Auto Hide DelaySeconds before hiding3
Reopen MethodHow users access settings laterFloating button
Floating Button PositionCorner for reopen buttonBottom left
Respect Do Not TrackHonor browser’s DNT settingNo
Cookie ExpiryDays until consent expires365
Re-ask After Policy UpdateRequest consent again after changesNo
Re-ask After DeclinePrompt declined users againNo
Re-ask DaysDays to wait before re-asking7
Block Page ScrollPrevent scrolling until consentNo

Integrations Tab (Pro)

Connect your cookie consent with popular analytics and marketing tools.

Supported Integrations

IntegrationCategoryDescription
Google AnalyticsAnalyticsFire GA only after consent
Google Tag ManagerAnalyticsControl GTM based on consent
Facebook PixelMarketingFire Pixel only after consent
Custom ScriptsAnyAdd custom scripts per category

For each integration, you can:

  • Enable/disable the integration
  • Assign it to a cookie category
  • Paste your tracking code or ID
  • The script only loads when that category is consented

Consent Logs Tab (Pro)

Track and store consent records for compliance documentation.

SettingDescriptionDefault
Enable LoggingStore consent recordsOff
Retention PeriodDays to keep logs365

The consent log records:

  • Timestamp of consent
  • User IP (anonymized)
  • Consent choices by category
  • Consent type (accept all, decline, custom)
  • Policy version at time of consent

You can export logs for auditing and filter by date range.


Advanced Tab (Pro)

Additional options for complex compliance needs.

SettingDescription
Geo-targetingShow different messages by region
Policy VersionTrack consent against policy changes
Custom CSSAdd additional styling
Updated on January 19, 2026
Was it helpful ?
Scroll to Top