> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.pandectes.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Cookie Domain Setup and Cross-Domain Consent (New Version)

|| This article applies to the **New Banner** (v5+). If you are on the Legacy Banner, please refer to the [Cookie Domain Setup and Cross-Domain Consent (Legacy Version)](https://help.pandectes.io/en/article/cookie-domain-setup-and-cross-domain-consent-legacy-version-130unst/) article.

### Introduction
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 **Cross-domain consent** option to cover all subdomains under the same root domain.

### Why Cookie Domain Matters
Let's say your site runs on:
* Main domain: `www.somesite.com`
* Subdomain: `marketing.somesite.com`
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 consent is not shared across both.
By setting the **consent 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.

### How to Configure Cross-Domain Consent
1. Go to **Settings → Banner**.
2. Select the **Advanced** tab.
3. Locate the **Cross-domain consent** section.
4. Enter your **root domain** in the Consent domain field (e.g. `somesite.com`).

### Example Scenario
* If traffic first comes to `marketing.somesite.com`, consent is saved on `somesite.com`.
* When the visitor later navigates to `www.somesite.com`, the banner does not reopen.
* Both the main domain and all subdomains share the same consent status.

### Benefits of Cross-Domain Consent
* **Seamless browsing** — users won't be shown repeated consent prompts as they move between parts of your site.
* **Improved trust** — a consistent consent experience reflects professionalism and respect for visitor privacy.
* **Technical efficiency** — your consent records remain centralised and easier to manage.