Articles on: Integrations

Basic mode - Google Consent Mode V2

Automatic GCM V2 integration for Basic Mode


Consentmo now provides the option to automatically setup Google Consent Mode and integrate all Google services you are using without having to add any additional code to your theme files.


✅ Requirements for Integration


  • Subscription to a Premium plan (Standard, Plus, or Enterprise).


  • Agree to let our app set up your Google services.


⚠️ NOTE: The following integration will only work properly if the Google services are added only via the Consentmo settings. If you have them running from any other 3rd party app, sales channel, or scripts in the theme, you need to remove them from there and have them running only via our app.


Integration Steps


  1. Navigate to Consentmo's settings and click on the Integrations tab in the left menu.


  1. Go to Google Consent Mode V2 section


  1. After that, Enable the Google Consent Mode V2 option


  1. From the menu there, add your Google services' IDs in the fields Google Tag Manager, Google Analytics, and Google Ads


Note that you can add more than one ID in a field by separating them with a comma, without any spacing between them. Example: AW-123456,AW-987654


  1. Save the changes


You can also check a reference on the process below:




  1. (optional) Change the additional settings if the default ones don't fit your store's requirements, from the next Consent mapping section there. More information on how this works and can be set, can be found here:




Basic mode - Manual GCM V2 Integration Steps


Step 1: Adding the integration script to your theme


  1. Open Shopify Admin.


  1. Click on Online Store link in the left menubar.


  1. Click on the Actions dropdown button and select Edit Code from there.


  1. A new page will open with a list of files on the left side of the screen.


  1. Create a new liquid file in the **Snippets **section of the theme files, called consentmo-gcmv2-basic-mode-integration


  1. After that copy the content of the integration script provided below and paste it in the newly created Snippet file:


Download Google Consent Mode V2 - Basic Mode Integration script


  1. Open the theme.liquid file.


  1. Locate the opening <head> tag and right after it, add the following line of code:


<!-- Google Consent Mode V2 Consentmo -->
{% render 'consentmo-gcmv2-basic-mode-integration' %}


Note: The line of code should be placed right after the opening <head> tag as the Google Consent Mode needs to be executed before the other tracking services (Google Tag Manager, Google Ads, etc.).


In case you need help with the process, please refer to the following via guide as well:



NOTE: Make sure to remove the added code before deleting the app. This way, no snippets of code will be left in your theme. For more information on what you should be aware of when deleting our app check this article of our FAQ page.


Step 2: Set Up Google Tag Manager Tags


This step consist of create a Trigger and setting up the consent setting for each tag. First, start by creating the Trigger:


  1. Click on the Triggers button on the left menu


  1. Click on the New button > Trigger Configuration > Custom Event


  1. In the field Event name write our app's event - consent_status


  1. Make sure that All Custom Events is picked and click on the **Save **button to save the changes.


A reference on the process can be checked in the following video:



After creating the trigger you should setup the consent settings for each of your tags. In order to do that, click on the Tags button located on the left menu and follow these instructions for all of the tags that require consent:


  • Open the tag's settings.


  • Scroll down to the the Additional Consent Checks option, pick Require additional consent for tag to fire and in the field below it setup the required consent. (e.g. for Google Analytics tag - analytics_storage, for Google Ads tag - ad_storage, etc.).


  • After setting up the required consent, scroll down to the Triggering section, click on the plus icon and choose the trigger we created (in our case the name of the trigger is Consentmo trigger.


  • Click on the **Save **button to save the changes.


A reference on the process can be checked in the following video:



NOTE: If your store has any Google services that are setup without Google Tag Manager, you should setup their IDs in the variable googleServicesIDs separated with a comma as shown in this example.





Need help?


In case you need any assistance, please make sure to reach out to our support team via live chat or at support@consentmo.com

Updated on: 28/08/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!