To properly implement Google Consent Mode (GCM) on your website while using GTM4WP (Google Tag Manager for WordPress) and WebToffee GDPR Cookie Consent, follow the below-mentioned steps:
Should You Enable GCM in Both Plugins?
No, you should only enable GCM in the WebToffee GDPR Cookie Consent plugin.
The WebToffee plugin will handle consent management, and GTM4WP should not interfere with it.
- Enable GCM only in the WebToffee GDPR Cookie Consent plugin.
- Disable GCM or consent settings in GTM4WP to avoid conflicts.
This ensures that all user consent decisions are passed to Google Tag Manager (GTM) via WebToffee, preventing redundant or conflicting implementations.
Steps to Enable GCM in WebToffee GDPR Cookie Consent
Step 1: Access WebToffee GDPR Plugin Settings
- In your WordPress dashboard, navigate to:
Cookie Consent → Google Consent Mode - Toggle Enable Google Consent Mode (GCM) to ON. Follow the steps mentioned in the following article to implement GCM: Implementing Google Consent Mode v2
Step 2: Configure Consent Mode Behaviour
- Choose between:
- Basic Mode: Google tags load only after consent is granted.
- Advanced Mode: Google tags load immediately but operate with limited functionality until consent is granted.
Steps to Configure GTM4WP
Since WebToffee manages consent, you must disable GTM4WP’s built-in consent handling. The steps to disable GCM in GTM4WP:
- From the Dashboard, navigate to Settings > Google Tag Manager.
- Move to the Integration tab and click on Google Consent Mode. Ensure Google Consent mode option is disabled.
- Next, Click on WebToffee GDPR Cookie Consent. Ensure WebToffee GDPR Cookie Consent option is disabled.
Verifying the Integration
- Test Cookie Consent Behaviour
- Visit your website in Incognito Mode and interact with the cookie consent banner.
- Check if Google Analytics, Ads, and other tracking scripts behave according to the user’s consent selection.
- Use Debugging Tools
- Use Google Tag Manager Preview Mode to verify if GCM signals are passed correctly.