Integrate with Google Consent Mode
Last updated
Last updated
Hello there! We're here to guide you through the process of integrating Google Consent Mode with Avada Cookie Consent. Google Consent Mode allows you to adjust how Google services operate based on the consent status of your visitors. This guide will walk you through the steps to make this integration happen. Don't worry, we'll be with you every step of the way!
First things first, please ensure that you've set up GA4 or GTM on your store. If you haven't done this yet, no worries! You can follow the instructions here to get that sorted out.
A. For NEW users that havenβt used integration with GCM through the Avada Cookie app, the process is:
Once that's done, please navigate to your Shopify admin > Online store
From there, select 'Edit code' from the Actions dropdown button.
Next, select the 'Asset' folder > Choose 'Add new asset' and upload the file 'avada-cookiebar-gcm-integration.js'. You can download the file below
avada-cookiebar-gcm-integration.js
Now, open the 'theme.liquid' file in the 'Layout' folder. Look for the opening tag of the HTML head element - <head>
in the 'theme.liquid' file.
Copy the code provided below and paste it as close to the opening head tag (<head>
) as possible.
Please ensure to place the GCM code before other tracking tools like GTM/GA.
B. For EXISTING users that have already used integration with GCM through the Avada Cookie app, please follow the instructions below:
Open Shopify Admin > Online store
Click on the Actions dropdown button and select Edit Code from there.
From the Assets section, locate the existing file avada-cookiebar-gcm-integration.js and delete it. You could also delete that file from your device to avoid using the old file.
Upload the new file 'avada-cookiebar-gcm-integration.js'
Now, let's head back to the Google Consent Mode V2 integration screen.
Click on Integrations (GCM V2, Tiktok, Pixel) > Google Consent Mode V2
Click 'Turn on' to integrate your store with GCM.
Once the integration is successful, you can choose 'Turn off' at any time to stop the integration with Google Consent Mode.
And there you have it! You've successfully integrated Google Consent Mode with Avada Cookie Consent. If you have any questions or run into any issues, don't hesitate to reach out. We're here to help!