Articles on: Integrations

Google Consent Mode V2 (GCM V2) - Automatic integration

Google Consent Mode V2 Setup and Status Checks


Consentmo's Google Consent Mode V2 integration includes built-in checks that help identify how Google tags are currently loaded on your Shopify store and whether any existing setup may conflict with the Consentmo integration.


You can find the integration under:


Consentmo GDPR → Integrations → Google Consent Mode V2




Before You Start


If GTM, GA4, Google Ads, or another Google tracking script is already being loaded through your theme, a Shopify Custom Pixel, or another app, review that setup before enabling Consentmo's managed integration.


Google tags added through Shopify's Google & YouTube channels are supported automatically and will be detected and added automatically by Consentmo.


Core Setup


The Core setup section lets you configure the Google services used on your store.


Available fields include:


  • Google Tag Manager ID (GTM)

Add your GTM container ID, for example GTM-XXXXXXX.


  • Google Analytics ID (GA4)

Add your GA4 Measurement ID, for example G-XXXXXXXXXX. A Google tag ID beginning with GT- is also supported.


  • Google Ads ID (AW)

Add your Google Ads ID, for example AW-XXXXXXXXX.


Google & YouTube Channel Detection


If Consentmo detects a supported Google tag from Shopify's Google & YouTube channel, the tag can be added automatically to the integration.


A message such as:


Added G-XXXXXXXXXX from your Google & YouTube channel.


will be shown in the Core setup section.



This means you do not need to manually add the same ID again.


Using the Consentmo CMP Template in GTM


If you have installed the Consentmo CMP tag inside your Google Tag Manager container, enable:


I have added the Consentmo CMP tag to my GTM container



The option is only recommended in cases when all Google tags and tracking are handled inside the GTM container.


If the GTM container is already loaded by a server-side solution like Elevar, Stape, Tagfly or similar, there is no need to add it in our integration as well, but only ensure the following is set in the GTM settings >> Integrating Server-Side GTM Tracking with Consentmo GDPR CMP (Google Consent Mode v2)


When this option is selected, the Consentmo CMP template is responsible for handling the Consent Mode configuration inside GTM.


If your GA4 and Google Ads tags are already configured inside the same GTM container, you only need to provide the GTM container ID.


Checking the Integration Status


Click Check status to scan the current storefront setup.


Consentmo checks the store for Google tags and how they are being loaded.


During the check, you may see:


Scan started. Checking pixel connection and consent rules.


The scan can identify several different scenarios.


Scenario 1: Google Tag Loaded Correctly Through Consentmo


If Consentmo is managing the Google tag and no conflicting installation is detected, the integration can show:


Active


This indicates that Consentmo can detect the configured Google Consent Mode setup.


Scenario 2: Google Tag Found in the Theme


Consentmo may detect that a GTM or Google tag is manually installed in your Shopify theme.


For example, the scan may identify the tag inside:


layout/theme.liquid


The app will show:


We found a Google tag loaded outside this integration.



This matters because a manually loaded tag may run independently of the Consentmo integration.


How to Resolve It


Go to:


Shopify Admin → Online Store → Themes → Edit code


Open the file identified by Consentmo, such as:


layout/theme.liquid


Find the Google Tag Manager or Google tag script using the ID shown in Consentmo.


For example:


GTM-XXXXXXX


Remove or disable the duplicate script and save the theme.


Then return to Consentmo and run Check status again.


Here is a reference on the process as well:


 



Scenario 3: Google Tag Found in a Shopify Custom Pixel or App


Consentmo can also detect a Google tag that is not present in the theme but appears to be loaded through another source, such as:


  • A Shopify Custom Pixel
  • Another Shopify app
  • Another tracking integration


The result is shown under:


Custom pixel or app


with the detected Google or GTM ID.


This installation should be reviewed because the same tag may be running independently of Consentmo.




If the GTM Custom Pixel Is Intentional


If you intentionally use a Shopify Custom Pixel to load GTM, use Consentmo's dedicated GCM V2 Custom Pixel integration instead of enabling a second Consentmo-managed GTM installation.


The Custom Pixel integration is designed to pass Consentmo consent information into GTM inside Shopify's pixel sandbox.



Multiple or Duplicate Tag Sources Detected


Consentmo may detect the same GTM or Google tag from more than one source, such as:


  • Consentmo
  • theme.liquid
  • A Shopify Custom Pixel
  • Another app or integration


When this happens, the status check lists the detected sources so you can identify where the duplicate installation is coming from.


For example, the same GTM container may be loaded through both the Shopify theme and a Custom Pixel.


How to Resolve It


Choose which integration should be responsible for loading the tag and remove the duplicate installation from the other source.


If you need to disconnect a Shopify Custom Pixel:


  1. Go to Shopify Admin → Settings → Customer events
  2. Open the relevant Custom Pixel
  3. Select Disconnect


After making the changes, return to Consentmo and run Check status again.


Understanding the Warning


When Consentmo shows:


We found a Google tag loaded outside this integration.


it does not necessarily mean the tag itself is broken.


It means the tag is being loaded by another source and may therefore operate outside the Consentmo-managed loading flow.


The warning helps prevent:


  • Duplicate GTM containers
  • Duplicate GA4 page views or events
  • Conflicting Consent Mode commands
  • Google tags loading through an unintended source
  • Multiple integrations attempting to control the same Google tag


Other Setup Methods


If your implementation requires GTM to be loaded manually or through a Shopify Custom Pixel, use the relevant Consentmo integration method instead of creating duplicate tag installations.


Recommended Setup Flow


For the cleanest configuration:


  1. Decide how GTM or Google tags should be loaded.
  2. Avoid loading the same GTM, GA4, or Google Ads tag through multiple sources.
  3. Allow Consentmo to detect supported tags from the Google & YouTube channel automatically.
  4. Add any remaining GTM, GA4, or Google Ads IDs required by your setup.
  5. Save the integration.
  6. Run Check status.
  7. Review any detected theme, Custom Pixel, or app installations.
  8. Remove or disconnect duplicate installations where needed.
  9. Run Check status again after making changes.


Important


The status check is intended to help identify the way Google tags are currently loaded on the storefront.


Depending on the store configuration, Consentmo may detect:


  • A correct Consentmo-managed setup
  • Google & YouTube channel tags
  • Theme-installed GTM or Google tags
  • Shopify Custom Pixels
  • Tags loaded by other apps
  • The same GTM container loaded multiple times


Always review the source identified by the scan before removing a tag, particularly if your store uses a custom GTM, server-side tracking, or Shopify Custom Pixel implementation.



What Is Google Consent Mode V2 - Advanced VS basic mode!


Google Consent Mode (GCM) helps websites adjust how Google tags behave based on a visitor’s cookie consent choices—supporting compliance with regulations like GDPR.


It works by sending consent signals to Google without requiring cookies, allowing for continued measurement even when users don’t give full consent.


⚠️ Note: Consent Mode doesn’t include a cookie banner—it needs to be integrated with your existing consent management platform (CMP).





  • Google tags load immediately when the page loads.


  • Tags assume consent is denied by default and send cookieless pings.


  • When consent is later granted, full tracking is activated.


  • Provides advertiser-specific conversion modeling for more accurate insights.


✅ Basic Mode


  • Google tags are blocked until the user interacts with the consent banner.


  • If consent is granted, tags fire and send consent state to Google.


  • If denied, no tags or data are sent at all.


  • Google uses a generalized model for conversions if data is missing.


What Are Cookieless Pings?


Even if a user denies consent, advanced mode allows for limited data to be sent to Google via cookieless pings, such as:


  • Page visits, referrer, and user agent


  • Consent state info (granted or denied)


  • Ad click info (if available)


  • Randomized session data


This helps maintain partial measurement while respecting user privacy.



  • Consent state is set dynamically based on the user’s banner interaction.


  • Tags adjust automatically based on whether ad_storage or analytics_storage are allowed.


  • With full consent, all Google tags behave normally.


Summary Table


Feature

Advanced Mode

Basic Mode

Tag Loading

Tags load immediately with denied defaults

Tags load after user interaction

Data Transmission

Sends cookieless pings before consent

No data sent before consent

Consent Updates

Updates dynamically based on user action

Set after banner interaction

Tag Behavior

Tags adapt based on user’s consent status

Tags fire only after consent is granted

Conversion Modeling

Uses advertiser-specific modeling

Uses generalized modeling





Based on this you can decide which integration will work best for you!



Need help?


If you need assistance choosing the correct Google Consent Mode V2 integration or resolving a duplicate tag warning, contact our support team through the in-app live chat or at support@consentmo.com.

Updated on: 26/11/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!