{"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-11-07T11:41:35","modified_gmt":"2026-11-07T11:41:35","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<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"950\" height=\"650\" src=\"https:\/\/www.swiftcommerce.io\/help\/wp-content\/uploads\/2026\/01\/clipboard.jpeg\" alt=\"Cookie Consent dashboard showing the current configuration tabs\" class=\"wp-image-3337\" srcset=\"https:\/\/www.swiftcommerce.io\/help\/wp-content\/uploads\/2026\/01\/clipboard.jpeg 950w, https:\/\/www.swiftcommerce.io\/help\/wp-content\/uploads\/2026\/01\/clipboard-767x525.jpeg 767w, https:\/\/www.swiftcommerce.io\/help\/wp-content\/uploads\/2026\/01\/clipboard-300x205.jpeg 300w, https:\/\/www.swiftcommerce.io\/help\/wp-content\/uploads\/2026\/01\/clipboard-360x246.jpeg 360w\" sizes=\"auto, (max-width: 950px) 100vw, 950px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Cookie Consent displays a consent banner and lets visitors accept, decline, or choose optional cookie categories. Configure the message, design, categories, and renewal behavior in the Swift Commerce dashboard. Pro adds consent-aware integrations, retained consent records, and regional controls. This guide describes the current dashboard; a banner alone does not guarantee legal compliance or block scripts added outside Swift Commerce.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Get started<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In WordPress, open Swift Commerce \u2192 Security &amp; Privacy \u2192 Cookie Consent and enable the feature.<\/li>\n\n\n\n<li>In General, write the banner title and message, set button labels, and link your privacy policy to an existing page or custom URL.<\/li>\n\n\n\n<li>In Appearance, choose a template and review the banner preview.<\/li>\n\n\n\n<li>In Categories, name and describe the choices visitors can make.<\/li>\n\n\n\n<li>Save changes and test the banner in a private browser session before adding analytics or marketing tags.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">General: message and buttons<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Set the title, explanatory message, Accept, Decline, and Settings button text, and privacy-policy link. Choose an existing policy page or a custom URL. Write category descriptions and consent language that reflect the scripts actually running on your store; do not reuse generic compliance claims without checking them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Appearance: template and design<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The available starter templates are Default Banner, Minimal, and Magazine. Free includes the theme setting (Light, Dark, or Auto) and primary, background, and text colors. Pro adds position and animation, typography, button styling, overlay effects, and other advanced design controls. Use the live preview to check both the first banner and the preferences view. Verify the result on mobile as well as desktop.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Categories and known-cookie inventory<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Categories tab is separate from General. Necessary is required and cannot be removed. Edit the visible names and descriptions while retaining stable category IDs so configured integrations continue to match. Add optional categories as needed, up to 20; before removing one, reassign integrations that use it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Known-cookie inventory suggests cookies associated with WordPress, WooCommerce, active plugins, and configured integrations. It is not a live browser crawl. Inspect the actual storefront and third-party scripts yourself. An empty inventory is not evidence that no cookies are set.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Behavior: timing and renewal<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Behavior is available in Free. Set Show Delay to 0\u201310 seconds, optionally block page scrolling until a choice is made, and choose how long to remember consent (1\u2013730 days). Policy Version can be used with Re-ask after policy update so visitors are prompted again after a version change. You can also respect the browser Do Not Track setting or re-ask after a decline following a chosen number of days.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Pro: consent-aware integrations<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Integrations tab lists Google Analytics (GA4), Google Tag Manager, Meta\/Facebook Pixel, Hotjar, Microsoft Clarity, Google Ads, LinkedIn Insight Tag, TikTok Pixel, Pinterest Tag, and Snapchat Pixel. For each provider you use, enable it, enter its identifier, and assign the correct optional category. Save changes and test both consent and decline flows. The integration controls govern scripts loaded by Swift Commerce; they cannot automatically block copies injected by a theme, another plugin, or a tag manager outside this setup.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Pro: consent logs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Enable logging in Consent Logs if you need retained preference records. The report shows the time, choice, accepted categories, client hash, and policy version. Choose a retention period, export up to the latest 5,000 records as CSV, and delete expired records through the maintenance action. Logging is off until enabled; existing records remain available if it is later turned off. Review your privacy-policy disclosures and retention obligations before collecting records.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Pro: regional controls<\/h2>\n\n\n\n\n\n<p class=\"wp-block-paragraph\">The Advanced tab contains geo-targeting controls, including showing the banner only in the EU or in GDPR regions when geo-targeting is enabled. Test from relevant locations before relying on regional display rules. Visitors using a VPN or geolocation services may not be classified as expected.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Launch checklist<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open the storefront in a fresh private session and confirm the banner and privacy link appear as intended.<\/li>\n\n\n\n<li>Try Accept, Decline, and category-specific preferences; reload and confirm the saved choice is respected.<\/li>\n\n\n\n<li>Inspect the browser network and cookies to verify that non-essential scripts do not fire before consent, including scripts added by your theme or other plugins.<\/li>\n\n\n\n<li>If you use Pro integrations, confirm each provider is assigned to the correct category and test with consent both granted and denied.<\/li>\n\n\n\n<li>Check keyboard interaction, mobile layout, and how a visitor can revisit their choice.<\/li>\n\n\n\n<li>Review your legal wording and policy with a qualified advisor; the plugin provides controls but does not determine legal requirements for your store.<\/li>\n<\/ul>\n\n\n\n<script type=\"application\/ld+json\" data-swift-commerce-documentation-schema=\"1\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/www.swiftcommerce.io\/help\/compliance\/cookie-consent\/#article\",\"url\":\"https:\/\/www.swiftcommerce.io\/help\/compliance\/cookie-consent\/\",\"headline\":\"Cookie Consent\",\"description\":\"Configure Swift Commerce cookie consent categories, preferences and supported script gating. Review records, retention and practical testing steps.\",\"inLanguage\":\"en\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.swiftcommerce.io\/help\/compliance\/cookie-consent\/#webpage\"},\"publisher\":{\"@type\":\"Organization\",\"name\":\"Swift Commerce\",\"url\":\"https:\/\/swiftcommerce.io\/\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.swiftcommerce.io\/help\/compliance\/cookie-consent\/#webpage\",\"url\":\"https:\/\/www.swiftcommerce.io\/help\/compliance\/cookie-consent\/\",\"name\":\"Cookie Consent\",\"description\":\"Configure Swift Commerce cookie consent categories, preferences and supported script gating. Review records, retention and practical testing steps.\",\"inLanguage\":\"en\",\"breadcrumb\":{\"@id\":\"https:\/\/www.swiftcommerce.io\/help\/compliance\/cookie-consent\/#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.swiftcommerce.io\/help\/compliance\/cookie-consent\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Documentation\",\"item\":\"https:\/\/www.swiftcommerce.io\/help\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Compliance\",\"item\":\"https:\/\/www.swiftcommerce.io\/help\/docs-category\/compliance\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Cookie Consent\",\"item\":\"https:\/\/www.swiftcommerce.io\/help\/compliance\/cookie-consent\/\"}]}]}<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Configure Swift Commerce cookie consent categories, preferences and supported script gating. Review records, retention and practical testing steps.<\/p>\n","protected":false},"author":101,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[81],"doc_tag":[],"class_list":["post-3164","docs","type-docs","status-publish","hentry","doc_category-compliance"],"year_month":"2026-11","word_count":735,"total_views":"118","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":8,"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/docs\/3164\/revisions"}],"predecessor-version":[{"id":3388,"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/docs\/3164\/revisions\/3388"}],"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}]}}