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.
Integration Steps
- Navigate to Consentmo's settings and click on the Integrations tab in the left menu.
- Go to Google Consent Mode V2 section
- After that, Enable the Google Consent Mode V2 option
- From the menu there, add your Google services' IDs in the fields Google Tag Manager, Google Analytics, and Google Ads
- Save the changes
You can also check a reference on the process below:
- (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
- Open Shopify Admin.
- Click on Online Store link in the left menubar.
- Click on the Actions dropdown button and select Edit Code from there.
- A new page will open with a list of files on the left side of the screen.
- Create a new liquid file in the **Snippets **section of the theme files, called
consentmo-gcmv2-basic-mode-integration
- After that copy the content of the integration script provided below and paste it in the newly created Snippet file:
- Open the
theme.liquid
file.
- 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' %}
<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:
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:
- Click on the Triggers button on the left menu
- Click on the New button > Trigger Configuration > Custom Event
- In the field Event name write our app's event -
consent_status
- 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:
googleServicesIDs
separated with a comma as shown in this example.More information on the Basic Mode of the Google Consent Mode V2 can be found here:
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
Thank you!