GA4 tags missing analytics_storage consent
GA4 tags have Additional consent configured without analytics_storage. For native GA4 tags, Built-In analytics_storage is active regardless — the Additional types create an extra gate.
Summary
- rule_id —
consent-ga4-missing-analytics - purpose — Detect GA4 tags with Additional consent configured that omit
analytics_storage - effect — Analytics data drops for users who consent to analytics but decline ads
- layer — container
- reversibility — non-destructive
What fires this
The rule targets active tags of type gaawe (GA4 Event) or googtag (Google Tag) where consent === 'NEEDED' and consentTypes.length > 0, but analytics_storage is absent from the consentTypes array. Paused tags are excluded. The rule then calls hasBuiltInCoverage() on every matched tag. If all matched tags have Built-In analytics_storage coverage, the rule emits a low-severity finding — the Additional configuration is redundant but not broken. If any tag lacks Built-In coverage, the rule emits a medium-severity gap finding.
Why it matters
GA4 tags should gate on analytics_storage, not ad_storage. When Additional consent lists ad_storage but omits analytics_storage, the tag only fires when ad consent is granted. Users who accept analytics but decline advertising produce no GA4 data at all. This skews session counts, conversion rates, and funnel attribution — silently, with no error in GTM. In GDPR jurisdictions, analytics-only consent is a common and legally distinct signal. Regulatory: GDPR Art. 6 (lawful basis), GDPR Art. 7 (consent).
Before / after
{
"type": "gaawe",
"consent": "NEEDED",
"consentTypes": ["ad_storage"]
}
{
"type": "gaawe",
"consent": "NEEDED",
"consentTypes": ["analytics_storage", "ad_storage"]
}
Remediation
- Open each flagged GA4 tag in GTM and navigate to Advanced Settings → Consent Settings.
- Check whether Built-In consent is active. If it is and covers
analytics_storage, decide whether the Additional gate is intentional. - If the Additional gate is not intentional, remove the Additional consent configuration entirely.
- If Built-In consent is off, add
analytics_storageto the Additional consent type list. - If the tag is analytics-only and currently lists only
ad_storage, replace it withanalytics_storage. - Confirm your CMP sends
analytics_storagesignals to GTM's Consent Mode API on user acceptance.
Metadata
- Severity
- medium
- Tier
- optimization
- Category
- consent
- Layer
- container
- Version
- 1
- Effort
15min(about 15 minutes)- Reversibility
- non-destructive
- Regulatory
- GDPR Art. 6 (lawful basis), GDPR Art. 7 (consent)
See also
- Consent rules — other rules in this category
- Health score — how this rule contributes to the score
- Rules catalog — browse all rules
Examples
curl https://developer.tagmanifest.com/v1/evaluate-rule \
-H "Authorization: Bearer $TM_API_KEY" \
-H "Content-Type: application/json" \
-d '{"rule_id":"consent-ga4-missing-analytics","url":"https://example.com"}'
User: Run consent-ga4-missing-analytics on https://example.com
# Tool call
{
"tool": "evaluate_rule",
"arguments": {
"rule_id": "consent-ga4-missing-analytics",
"url": "https://example.com"
}
}