Articles on: Settings

Cookie Domain Setup and Cross-Domain Consent

When your store runs on both a main domain and one or more subdomains, you may encounter issues where the cookie banner reappears even if the visitor has already given consent.


This happens because by default, cookies are stored on the specific domain or subdomain where the visitor first interacts with the banner. To ensure a smooth user experience and consistent compliance, you can configure the cookie domain option to cover all subdomains under the same root domain.



Let’s say your site runs on:



If a visitor lands first on marketing.somesite.com, the cookie consent is saved there. But when the same visitor navigates to www.somesite.com, the banner appears again, because the cookie is not shared across both.


By setting the cookie domain to the root domain somesite.com, the consent cookie will be valid for both the main domain and all subdomains. This ensures:


  • Cross-domain consent: Visitors only need to give consent once, and it applies everywhere within your domain and its subdomains.
  • Better user experience: No repeated banners across different parts of your site.
  • Consistent compliance: Consent is tracked uniformly across all your store’s properties.



  1. Go to Settings > Banner.
  2. Locate the Cookie Domain option.
  3. Set the domain to your root domain (e.g., somesite.com).




Example Scenario




  • Seamless browsing: Users won’t be annoyed by repeated consent prompts.
  • Improved trust: A consistent consent experience shows professionalism and respect for user privacy.
  • Technical efficiency: Your consent logs remain centralized and easier to manage.







Updated on: 29/09/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!