> ## 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 Google Consent Mode V2

Connecting **Google Consent Mode V2** with Hoppy Cookie allows Google services to adjust their behavior based on the consent choices made by your visitors.

Instead of completely blocking Google scripts, Consent Mode communicates consent preferences to Google Analytics, Google Ads, and Google Tag Manager, helping merchants balance privacy compliance with measurement and reporting capabilities.

---

# **⚠️ Before You Begin**

Before connecting Google Consent Mode V2, make sure:

* You have at least one of the following configured:  
  * Google Analytics 4 (GA4)  
  * Google Ads  
  * Google Tag Manager (GTM)  
* You have the required IDs ready:  
  * GA4 Measurement ID (`G-XXXXXXXXXX`)  
  * Google Ads ID (`AW-XXXXXXXXXX`)  
  * Google Tag Manager ID (`GTM-XXXXXXX`)

⚠️ **Important:**

If Google scripts are already installed through another app, sales channel, or directly inside your Shopify theme, remove those duplicate installations first. Running the same Google tag multiple times can result in inaccurate reporting and duplicate events.

💡 For merchants serving GDPR visitors, enabling **TCF v2.3** alongside Google Consent Mode V2 is strongly recommended.

---

# **🛠️ Step 1 — Open the Integrations Page**

Inside your Shopify Admin:

→ Open **Hoppy GDPR EU Cookie Banner**

→ Click **Integrations** from the left-side navigation menu

Locate the **Google Consent Mode V2** integration card.

---

# **⚙️ Step 2 — Configure the Integration**

Google Consent Mode V2 supports two setup methods depending on how Google tags are currently installed on your store.

---

## **Option A — Let Hoppy Load Google Tags**

Choose this option if Google tags are not currently installed elsewhere.

Enter the following IDs as needed:

### **Google Analytics ID (GA4)**

Used to connect Google Analytics 4 tracking.

**Example:**

G-XXXXXXXXXX

---

### **Google Ads ID**

Used to connect Google Ads conversion tracking.

**Example:**

AW-XXXXXXXXXX

---

### **Google Tag Manager ID**

Used to connect Google Tag Manager.

**Example:**

GTM-XXXXXXX

⚠️ If a GTM ID is provided, Hoppy loads GTM only and expects GA4 and Google Ads tags to be managed inside the GTM container.

Do not install the same tag through multiple sources.

---

## **Option B — Google Tags Already Exist**

Choose this option if Google scripts have already been installed through:

* Theme code  
* Google Tag Manager  
* Another Shopify app  
* A custom implementation

For this setup:

→ Leave all ID fields empty

→ Enable the integration

→ Save your changes

Hoppy will only send consent signals to the existing dataLayer and will not inject additional Google scripts.

---

# **💾 Step 3 — Enable the Integration**

After configuring your preferred setup:

→ Toggle **Integrate with Google Consent Mode V2** to **ON**

→ Click **Save**

Once saved successfully:

✅ The integration status changes to **On**

If the status remains Off, refresh the page and verify that the settings were saved correctly.

---

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

After saving, it's recommended to verify that consent signals are reaching Google correctly.

---

## **Browser Testing**

Open your storefront in a private or incognito browser window.

Then:

→ Open Developer Tools

→ Open the Console

→ Type:

dataLayer

Look for consent-related values similar to:

analytics\_storage: "denied"  
ad\_storage: "denied"  
ad\_user\_data: "denied"  
ad\_personalization: "denied"

After accepting cookies through the banner, these values should update according to the categories accepted by the visitor.

---

## **Google Tag Assistant**

Use Google Tag Assistant to verify:

* Consent status  
* Tag loading behavior  
* Google tag configuration

This provides a quick way to confirm that Consent Mode is functioning correctly.

---

## **GA4 DebugView**

If Google Analytics 4 is connected:

→ Open **DebugView** inside GA4

Confirm that events are arriving and respecting the expected consent state.

---

# **⚠️ Common Troubleshooting**

## **Duplicate Events or Double Tracking**

This usually means Google tags are loading from multiple locations.

Check:

* Shopify theme code  
* Other Shopify apps  
* Existing GTM containers

Only one source should load each Google tag.

---

## **No Consent Signals Detected**

Verify:

* The integration is enabled  
* Changes were saved successfully  
* The cookie banner is published  
* No JavaScript errors are blocking execution

---

## **GTM Loads But Analytics or Ads Do Not**

If a GTM ID has been entered:

* Hoppy only loads GTM  
* GA4 and Google Ads tags must be configured inside Google Tag Manager

Open GTM and verify the required tags have been published.

---

## **Consent Preferences Do Not Update**

Verify:

* No other cookie consent solution is installed  
* No JavaScript errors exist on the page  
* Testing is performed in a fresh Incognito window

A hard refresh may also help clear cached behavior.

---

# **🎉 Final Result**

Once configured successfully:

✅ Hoppy sends consent signals to Google services automatically

✅ Google Analytics respects visitor consent preferences

✅ Google Ads responds to marketing consent choices

✅ Google Tag Manager receives consent state updates

✅ Consent changes synchronize automatically

✅ Your store maintains a more privacy-friendly measurement setup

Google Consent Mode V2 helps merchants maintain useful analytics and advertising insights while respecting visitor privacy choices. 🍪

---