> ## 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).

# 🔗 Integrate Hoppy Cookie with Amazon Consent Signal

If you run Amazon Ads on your store, Amazon needs to know whether a visitor has agreed to ad-related data use. The **Amazon Consent Signal** integration in **GDPR EU Cookie Banner** passes the visitor's consent choice to Amazon's ad tag automatically.

---

# **⚠️ Before You Begin**

Make sure:

* **GDPR EU Cookie Banner** is installed, the App Embed is enabled, and your banner is published  
* The Amazon Ad Tag (`amzn.js`) is already installed on your store

The integration does **not** install the Amazon tag for you. It works by detecting the tag you already have.

---

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

➡️ Open **GDPR EU Cookie Banner**

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

➡️ Open the **Amazon Consent Signal** card

The page explains: *This integration works automatically by detecting your existing Amazon Ad Tag (amzn.js).*

---

# **⚙️ Step 2 — Enable It**

There is no ID or code to enter.

➡️ Click **Enable** so the status reads **Amazon Consent Signal is currently Enabled**

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

---

# **🔄 How It Works**

When the page loads and whenever a visitor makes a choice, the banner writes a cookie named `amzn_consent`. Your Amazon Ad Tag reads this cookie.

The cookie contains:

* **amzn_user_data** — GRANTED or DENIED  
* **amzn_ad_storage** — GRANTED or DENIED  
* **country_code** — the visitor's country when it is known

Both values follow the **Marketing** category:

* Marketing accepted → **GRANTED**  
* Marketing declined → **DENIED**

The cookie is updated whenever the visitor changes their choices.

---

# **🧪 Step 3 — Test the Integration**

You can also open **View guide** under **Step 2: Test if integration with Amazon Consent Signal works successfully**.

### **Test with Accept**

➡️ Open your storefront in an Incognito or Private window

➡️ Open the browser console (press **F12**)

➡️ Click the accept button in the banner (default text: **Accept**)

➡️ Type `document.cookie` and press **Enter**

**Expected result:** the text contains `amzn_consent=` with the status **GRANTED**.

### **Test with Decline**

➡️ Open a fresh Incognito or Private window

➡️ Decline marketing cookies

➡️ Type `document.cookie` in the console

**Expected result:** the text contains `amzn_consent=` with the status **DENIED**.

---

# **🛠️ Troubleshooting**

**No `amzn_consent` cookie**

* Check that the status is **Enabled** and you clicked **Save**  
* Make sure the banner is published and you are in a region where it is shown. Visitors outside your selected regions are not managed by the banner  
* Reload the page. The cookie is written when the page loads (as **DENIED** until Marketing is accepted, or as **GRANTED** with the **Decline only** banner type) and updated after each choice

**The cookie is there but Amazon reports no consent signal**

The integration only writes the cookie. Confirm that your Amazon Ad Tag is installed correctly and check your Amazon Ads setup. If you need more help, contact support through the chat widget.

**Both values show DENIED after accepting**

Make sure the visitor accepted **Marketing**. Accepting only Analytics does not grant Amazon consent.

---

# **⚠️ Important Notes**

* Only the **Marketing** category controls this integration  
* The integration does not load or block the Amazon tag itself  
* Consent updates are applied whenever the visitor changes their choice

---

# **🎉 Final Result**

✅ Amazon receives each visitor's consent choice through the `amzn_consent` cookie

✅ No code changes are required

✅ Ad measurement can respect visitor privacy choices