> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.hoppyapps.com/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).

# 🔗 How to Share Consent Across Domains and Subdomains

If your store runs on more than one address, for example a main store and regional storefronts on subdomains, a visitor would normally be asked for cookie consent again on each one. **Cross domain consent sharing** lets a choice made on one address apply to your other addresses on the same main domain.

This guide explains how it works, how to turn it on, and what its limits are.

---

# **🤔 How It Works**

When this setting is on, the banner tries to save the visitor's consent cookie on your **root domain** instead of only the current address.

For example, a choice made on `yourstore.com` can also apply on `usa.yourstore.com` and `eu.yourstore.com`, because they all share the root domain `yourstore.com`.

⚠️ In the current version, the cookie is only written to the root domain when the visitor makes the choice on the root domain itself (for example `yourstore.com`). A choice made on a subdomain such as `www.yourstore.com` or `usa.yourstore.com` is saved for that subdomain only and is not shared with the others.

⚠️ The shared cookie carries the consent choice, not the fact that the banner was closed. The banner remembers that separately for each address, so it can still appear on another address even though the earlier choice is already applied there.

The app describes the limit this way: consent sharing is limited to your **primary domain** (for example, `yourstore.com`) and its **subdomains** (for example, `usa.yourstore.com`).

⚠️ Browsers do not allow a cookie to be shared between completely different domains. A store on `brand-one.com` cannot share consent with `brand-two.com` using this setting.

---

# **⚠️ Before You Begin**

Make sure:

* **GDPR EU Cookie Banner** is installed on every storefront that should share consent  
* The App Embed is enabled in each storefront's theme  
* Your storefronts are subdomains of the same root domain

---

# **🛠️ Step 1 — Open the Setting**

➡️ Open **GDPR EU Cookie Banner**

➡️ Click **Settings** in the left menu

➡️ Open the **Cross domain consent sharing** card  
(*Allow users' consent choices to sync across multiple domains.*)

---

# **✅ Step 2 — Enable It**

➡️ Tick the checkbox on the right side of the card

The text next to it reads: *Keep user consent consistent across all your sub-domains. Once a visitor sets their cookie preferences on one site, the same choices apply on your other storefronts.*

---

# **➕ Step 3 — Add Your Store URLs**

After enabling, a **Store URL** field appears.

➡️ Type the address, for example `usa.yourstore.com`

➡️ Click **Add site**

The address is added to a table. To remove one, click **Remove** next to it.

💡 This list is a record of the storefronts you share consent with. The sharing itself comes from the consent cookie, not from this list, so adding an address here does not by itself make sharing work for it.

➡️ Click **Save** in the save bar

---

# **🔄 Step 4 — Re-save Your Banner**

Your storefront banner uses the configuration that is published when you save **Banner settings**. Saving the **Cross domain consent sharing** card alone does not republish it.

➡️ Open **Banner settings**

➡️ Make a small change (you can change it back) so the save bar appears

➡️ Click **Save**

---

# **🧪 Step 5 — Test**

➡️ Open your root domain (for example `yourstore.com`) in a new Incognito or Private window

➡️ Accept or decline in the banner

➡️ Open a subdomain of the same root domain in the **same** window

### **Expected Result**

The earlier choice is applied on the subdomain when the page loads. The banner itself can still appear there, because closing it is remembered separately for each address.

If you open the **Consent logs** page, choices made while testing appear as logs.

---

# **🛠️ Troubleshooting**

**The choice is not applied on the other address**

* Confirm the setting is **enabled** and saved on every storefront  
* Re-save **Banner settings** after changing this setting (Step 4)  
* Confirm both addresses share the same root domain  
* Make the first choice on the root domain itself (for example `yourstore.com`), not on a subdomain such as `www.yourstore.com`  
* Test in a fresh Incognito or Private window  
* Confirm the banner is published on both storefronts

**Two separate domains must share consent**

This setting cannot join separate domains. Each domain keeps its own consent, so visitors choose once per domain.

---

# **⚠️ Important Notes**

* Sharing works through the visitor's browser cookie, so it only applies while the same browser is used  
* Consent cookies last for 1 year  
* Turn the setting off if you no longer use multiple storefronts

---

# **🎉 Final Result**

✅ Consent set on your root domain applies across its subdomains

✅ Visitors' earlier choices are applied on your other storefronts

✅ Your consent behavior is consistent across storefronts