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
- Navigate to Swift Commerce in your WordPress admin menu
- Click on Cookie Consent from the features list
- Toggle the Enable switch to activate the feature
- Click Save Changes
Step 2: Configure Your Consent Message
- Go to the General tab
- 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
- Add your Privacy Policy URL to link to your privacy page
- Click Save Changes
Settings Reference #
General Tab
Content Settings
| Setting | Description | Default |
|---|---|---|
| Title | Heading text for the popup | “We Value Your Privacy” |
| Message | Main consent explanation text | Cookie usage explanation |
| Accept Button Text | Text on the accept button | “Accept All” |
| Decline Button Text | Text on the decline button | “Decline” |
| Settings Button Text | Text on the preferences button | “Cookie Settings” |
| Privacy Policy Text | Link text for privacy page | “Privacy Policy” |
| Privacy Policy URL | URL to your privacy policy | (empty) |
| Show Decline Button | Display the decline option | Yes |
| Show Settings Button | Allow users to customize preferences | Yes |
| Show Privacy Link | Include link to privacy policy | Yes |
Cookie Categories
Define which cookie categories users can control:
| Category | Description | Required |
|---|---|---|
| Necessary | Essential cookies for site functionality | Yes (cannot be disabled) |
| Analytics | Cookies for understanding visitor behavior | No |
| Marketing | Cookies for personalized advertisements | No |
| Functional | Cookies for enhanced features and personalization | No |
Appearance Tab
Template Options
| Template | Description |
|---|---|
| Default | Standard banner with icon and buttons |
| Minimal | Clean, simplified design |
| Floating | Compact floating card |
| Custom (Pro) | Fully customizable design |
Position Options
| Position | Description |
|---|---|
| Bottom | Full-width banner at bottom of screen |
| Top | Full-width banner at top of screen |
| Bottom Left | Floating card in bottom-left corner |
| Bottom Right | Floating card in bottom-right corner |
| Center | Centered modal with optional overlay |
Theme Options
| Theme | Description |
|---|---|
| Light | White background with dark text |
| Dark | Dark background with light text |
| Auto | Matches user’s system preference |
Style Settings
| Setting | Description | Default |
|---|---|---|
| Primary Color | Button and accent color | Violet (#7c3aed) |
| Background Color | Popup background | White (#ffffff) |
| Text Color | Message text color | Dark gray (#1f2937) |
| Border Radius | Corner roundness | 8px |
| Show Icon | Display privacy shield icon | Yes |
| Animation | Entry animation (slide, fade, none) | Slide |
| Blur Background | Blur page behind popup | No |
| Show Overlay | Dim background behind popup | No |
Behavior Tab (Pro)
Control how the consent popup displays and interacts with visitors.
| Setting | Description | Default |
|---|---|---|
| Show Delay | Seconds before showing popup | 0 (immediate) |
| Auto Hide | Hide popup after acceptance | No |
| Auto Hide Delay | Seconds before hiding | 3 |
| Reopen Method | How users access settings later | Floating button |
| Floating Button Position | Corner for reopen button | Bottom left |
| Respect Do Not Track | Honor browser’s DNT setting | No |
| Cookie Expiry | Days until consent expires | 365 |
| Re-ask After Policy Update | Request consent again after changes | No |
| Re-ask After Decline | Prompt declined users again | No |
| Re-ask Days | Days to wait before re-asking | 7 |
| Block Page Scroll | Prevent scrolling until consent | No |
Integrations Tab (Pro)
Connect your cookie consent with popular analytics and marketing tools.
Supported Integrations
| Integration | Category | Description |
|---|---|---|
| Google Analytics | Analytics | Fire GA only after consent |
| Google Tag Manager | Analytics | Control GTM based on consent |
| Facebook Pixel | Marketing | Fire Pixel only after consent |
| Custom Scripts | Any | Add 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.
| Setting | Description | Default |
|---|---|---|
| Enable Logging | Store consent records | Off |
| Retention Period | Days to keep logs | 365 |
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.
| Setting | Description |
|---|---|
| Geo-targeting | Show different messages by region |
| Policy Version | Track consent against policy changes |
| Custom CSS | Add additional styling |