{"id":3164,"date":"2026-01-19T10:11:25","date_gmt":"2026-01-19T10:11:25","guid":{"rendered":"https:\/\/www.swiftcommerce.io\/help\/?post_type=docs&#038;p=3164"},"modified":"2026-03-14T21:09:12","modified_gmt":"2026-03-14T21:09:12","password":"","slug":"cookie-consent","status":"publish","type":"docs","link":"https:\/\/www.swiftcommerce.io\/help\/compliance\/cookie-consent\/","title":{"rendered":"Cookie Consent"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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&#8217;s design.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Getting Started<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Enable the Feature<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to&nbsp;<strong>Swift Commerce<\/strong>&nbsp;in your WordPress admin menu<\/li>\n\n\n\n<li>Click on&nbsp;<strong>Cookie Consent<\/strong>&nbsp;from the features list<\/li>\n\n\n\n<li>Toggle the&nbsp;<strong>Enable<\/strong>&nbsp;switch to activate the feature<\/li>\n\n\n\n<li>Click&nbsp;<strong>Save Changes<\/strong><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Configure Your Consent Message<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to the&nbsp;<strong>General<\/strong>&nbsp;tab<\/li>\n\n\n\n<li>Customize the following text fields:\n<ul class=\"wp-block-list\">\n<li><strong>Title<\/strong>&nbsp;\u2013 The heading displayed on the popup (e.g., &#8220;We Value Your Privacy&#8221;)<\/li>\n\n\n\n<li><strong>Message<\/strong>&nbsp;\u2013 Your consent explanation text<\/li>\n\n\n\n<li><strong>Accept Button Text<\/strong>&nbsp;\u2013 Text for the accept button (e.g., &#8220;Accept All&#8221;)<\/li>\n\n\n\n<li><strong>Decline Button Text<\/strong>&nbsp;\u2013 Text for the decline button<\/li>\n\n\n\n<li><strong>Settings Button Text<\/strong>&nbsp;\u2013 Text for the cookie preferences button<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Add your&nbsp;<strong>Privacy Policy URL<\/strong>&nbsp;to link to your privacy page<\/li>\n\n\n\n<li>Click&nbsp;<strong>Save Changes<\/strong><\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Settings Reference<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">General Tab<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Content Settings<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Setting<\/th><th>Description<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>Title<\/td><td>Heading text for the popup<\/td><td>&#8220;We Value Your Privacy&#8221;<\/td><\/tr><tr><td>Message<\/td><td>Main consent explanation text<\/td><td>Cookie usage explanation<\/td><\/tr><tr><td>Accept Button Text<\/td><td>Text on the accept button<\/td><td>&#8220;Accept All&#8221;<\/td><\/tr><tr><td>Decline Button Text<\/td><td>Text on the decline button<\/td><td>&#8220;Decline&#8221;<\/td><\/tr><tr><td>Settings Button Text<\/td><td>Text on the preferences button<\/td><td>&#8220;Cookie Settings&#8221;<\/td><\/tr><tr><td>Privacy Policy Text<\/td><td>Link text for privacy page<\/td><td>&#8220;Privacy Policy&#8221;<\/td><\/tr><tr><td>Privacy Policy URL<\/td><td>URL to your privacy policy<\/td><td>(empty)<\/td><\/tr><tr><td>Show Decline Button<\/td><td>Display the decline option<\/td><td>Yes<\/td><\/tr><tr><td>Show Settings Button<\/td><td>Allow users to customize preferences<\/td><td>Yes<\/td><\/tr><tr><td>Show Privacy Link<\/td><td>Include link to privacy policy<\/td><td>Yes<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Cookie Categories<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Define which cookie categories users can control:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Category<\/th><th>Description<\/th><th>Required<\/th><\/tr><\/thead><tbody><tr><td><strong>Necessary<\/strong><\/td><td>Essential cookies for site functionality<\/td><td>Yes (cannot be disabled)<\/td><\/tr><tr><td><strong>Analytics<\/strong><\/td><td>Cookies for understanding visitor behavior<\/td><td>No<\/td><\/tr><tr><td><strong>Marketing<\/strong><\/td><td>Cookies for personalized advertisements<\/td><td>No<\/td><\/tr><tr><td><strong>Functional<\/strong><\/td><td>Cookies for enhanced features and personalization<\/td><td>No<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Appearance Tab<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Template Options<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Template<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Default<\/td><td>Standard banner with icon and buttons<\/td><\/tr><tr><td>Minimal<\/td><td>Clean, simplified design<\/td><\/tr><tr><td>Floating<\/td><td>Compact floating card<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Position Options<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Position<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Bottom<\/td><td>Full-width banner at bottom of screen<\/td><\/tr><tr><td>Top<\/td><td>Full-width banner at top of screen<\/td><\/tr><tr><td>Bottom Left<\/td><td>Floating card in bottom-left corner<\/td><\/tr><tr><td>Bottom Right<\/td><td>Floating card in bottom-right corner<\/td><\/tr><tr><td>Center<\/td><td>Centered modal with optional overlay<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Theme Options<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Theme<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Light<\/td><td>White background with dark text<\/td><\/tr><tr><td>Dark<\/td><td>Dark background with light text<\/td><\/tr><tr><td>Auto<\/td><td>Matches user&#8217;s system preference<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Style Settings<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Setting<\/th><th>Description<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>Primary Color<\/td><td>Button and accent color<\/td><td>Violet (#7c3aed)<\/td><\/tr><tr><td>Background Color<\/td><td>Popup background<\/td><td>White (#ffffff)<\/td><\/tr><tr><td>Text Color<\/td><td>Message text color<\/td><td>Dark gray (#1f2937)<\/td><\/tr><tr><td>Border Radius<\/td><td>Corner roundness<\/td><td>8px<\/td><\/tr><tr><td>Show Icon<\/td><td>Display privacy shield icon<\/td><td>Yes<\/td><\/tr><tr><td>Animation<\/td><td>Entry animation (slide, fade, none)<\/td><td>Slide<\/td><\/tr><tr><td>Blur Background<\/td><td>Blur page behind popup<\/td><td>No<\/td><\/tr><tr><td>Show Overlay<\/td><td>Dim background behind popup<\/td><td>No<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Behavior Tab (Pro)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Control how the consent popup displays and interacts with visitors.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Setting<\/th><th>Description<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>Show Delay<\/td><td>Seconds before showing popup<\/td><td>0 (immediate)<\/td><\/tr><tr><td>Auto Hide<\/td><td>Hide popup after acceptance<\/td><td>No<\/td><\/tr><tr><td>Auto Hide Delay<\/td><td>Seconds before hiding<\/td><td>3<\/td><\/tr><tr><td>Reopen Method<\/td><td>How users access settings later<\/td><td>Floating button<\/td><\/tr><tr><td>Floating Button Position<\/td><td>Corner for reopen button<\/td><td>Bottom left<\/td><\/tr><tr><td>Respect Do Not Track<\/td><td>Honor browser&#8217;s DNT setting<\/td><td>No<\/td><\/tr><tr><td>Cookie Expiry<\/td><td>Days until consent expires<\/td><td>365<\/td><\/tr><tr><td>Re-ask After Policy Update<\/td><td>Request consent again after changes<\/td><td>No<\/td><\/tr><tr><td>Re-ask After Decline<\/td><td>Prompt declined users again<\/td><td>No<\/td><\/tr><tr><td>Re-ask Days<\/td><td>Days to wait before re-asking<\/td><td>7<\/td><\/tr><tr><td>Block Page Scroll<\/td><td>Prevent scrolling until consent<\/td><td>No<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Integrations Tab (Pro)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Connect your cookie consent with popular analytics and marketing tools.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Supported Integrations<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Integration<\/th><th>Category<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Google Analytics<\/td><td>Analytics<\/td><td>Fire GA only after consent<\/td><\/tr><tr><td>Google Tag Manager<\/td><td>Analytics<\/td><td>Control GTM based on consent<\/td><\/tr><tr><td>Facebook Pixel<\/td><td>Marketing<\/td><td>Fire Pixel only after consent<\/td><\/tr><tr><td>Custom Scripts<\/td><td>Any<\/td><td>Add custom scripts per category<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">For each integration, you can:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enable\/disable the integration<\/li>\n\n\n\n<li>Assign it to a cookie category<\/li>\n\n\n\n<li>Paste your tracking code or ID<\/li>\n\n\n\n<li>The script only loads when that category is consented<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Consent Logs Tab (Pro)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Track and store consent records for compliance documentation.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Setting<\/th><th>Description<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>Enable Logging<\/td><td>Store consent records<\/td><td>Off<\/td><\/tr><tr><td>Retention Period<\/td><td>Days to keep logs<\/td><td>365<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The consent log records:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Timestamp of consent<\/li>\n\n\n\n<li>User IP (anonymized)<\/li>\n\n\n\n<li>Consent choices by category<\/li>\n\n\n\n<li>Consent type (accept all, decline, custom)<\/li>\n\n\n\n<li>Policy version at time of consent<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You can export logs for auditing and filter by date range.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Advanced Tab (Pro)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Additional options for complex compliance needs.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Setting<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Geo-targeting<\/td><td>Show different messages by region<\/td><\/tr><tr><td>Policy Version<\/td><td>Track consent against policy changes<\/td><\/tr><tr><td>Custom CSS<\/td><td>Add additional styling<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":101,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"doc_category":[81],"doc_tag":[],"class_list":["post-3164","docs","type-docs","status-publish","hentry","doc_category-compliance"],"year_month":"2026-09","word_count":620,"total_views":"112","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Mansoor Ahmad","author_nicename":"helpadmin","author_url":"https:\/\/www.swiftcommerce.io\/help\/author\/helpadmin\/"},"doc_category_info":[{"term_name":"Compliance","term_url":"https:\/\/www.swiftcommerce.io\/help\/docs-category\/compliance\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/docs\/3164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/users\/101"}],"replies":[{"embeddable":true,"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/comments?post=3164"}],"version-history":[{"count":2,"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/docs\/3164\/revisions"}],"predecessor-version":[{"id":3284,"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/docs\/3164\/revisions\/3284"}],"wp:attachment":[{"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/media?parent=3164"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/doc_category?post=3164"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/doc_tag?post=3164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}