Integrations
Google Consent Mode v2
Tugus reads the consent state from the gtag consent hook automatically and filters events accordingly.
Tugus automatically reads the consent state from the gtag('consent', 'update', {...}) hook. Events are filtered accordingly or forwarded as modeled conversions.
// Standard GCM default (before the consent decision)
gtag('consent', 'default', {
ad_storage: 'denied',
analytics_storage: 'denied',
ad_user_data: 'denied',
ad_personalization: 'denied',
wait_for_update: 500,
})
// After the user confirms
gtag('consent', 'update', {
ad_storage: 'granted',
analytics_storage: 'granted',
ad_user_data: 'granted',
ad_personalization: 'granted',
})
// Tugus reacts to gtag consent updates automatically
// No separate tugus.setConsent() needed when GCM is active