Skip to content

GdprGtm Module

Overview

The GdprGtm module integrates Google Tag Manager with GDPR consent, implementing Google Consent Mode v2 for consent-aware tracking.

Configuration

Path: Stores > Configuration > GDPR Compliance > Google Tag Manager

  • Enable GTM Integration - Enable GTM
  • GTM Container ID - Your GTM ID (GTM-XXXXXX)
  • Enable Consent Mode - Google Consent Mode v2
  • Default Analytics Consent - Granted/Denied
  • Default Ads Consent - Granted/Denied
  • Wait for Update - Milliseconds to wait

Automatically updates GTM when consent changes:

gtag('consent', 'update', {
    'analytics_storage': 'granted',
    'ad_storage': 'denied'
});
  • GdprCookie - Cookie consent integration
  • GdprAnalytics - Analytics tracking