Removing Google Properties from your Shopify theme
Overview
This article shows how to remove Google Tag Manager, Google Analytics, and Google Ads snippets from your theme's theme.liquid file and load the same tags through the Pandectes Google Consent Mode integration instead.
When Pandectes loads your Google tags, it sets the Google consent defaults first, so every tag starts with the visitor's consent state. It also keeps theme.liquid cleaner and avoids loading the same tag twice.
Remove the tags from your theme
- In Shopify Admin, go to Online Store > Themes. Next to your live theme, click the ... button and select Edit code.
- Open
theme.liquidin the Layout folder. - Find the Google snippets. Search for
GTM-,G-, andAW-. Copy each ID somewhere safe (for exampleGTM-AB12CD3,G-1A2B3C4D5E,AW-123456789). - Delete the snippets, then click Save.
UA-), delete it too. Google no longer supports Universal Analytics.Add the tags in Pandectes
- In Shopify Admin, go to Apps > Pandectes GDPR > Integrations. On the Google Consent Mode card, click Configure.

- Turn on the Google Consent Mode toggle at the top of the page.

- Under Configuration, paste the IDs you copied:
- Google Tag Manager ID for
GTM-IDs - Google Analytics ID for
G-orGT-IDs - Google Ads ID for
AW-IDs
- Google Tag Manager ID for
Separate several IDs in one field with commas.

- Click Save.
What happens next
Pandectes now loads the tags you entered and sends Google the visitor's consent. By default the integration runs in Advanced mode: tags load with consent set to denied and only send cookieless pings until the visitor accepts. To hold the tags back completely until consent, select Run in basic mode - Tags load after consent under Advanced settings. Both options are explained in Using Google Consent Mode Integration.
Updated on: 27/10/2026
Thank you!
