Skip to main content
TagManifest /Docs Dashboard

GA4 events with consent NOT_NEEDED

GA4 event tags have Additional consent set to NOT_NEEDED. Native GA4 tags have Built-In analytics_storage that automatically respects Consent Mode v2 — this is Google's recommended setup. Non-native GA4 implementations need explicit consent.

On this page 6

Summary

  • rule_id — consent-ga4-not-needed
  • purpose — Detect GA4 event tags where Additional consent is set to NOT_NEEDED
  • effect — Distinguishes safe native-tag configs from non-native tags that bypass consent enforcement
  • layer — container
  • reversibility — non-destructive

What fires this

The rule filters active tags where t.type === 'gaawe' (GA4 Event) and t.consent === 'NOT_NEEDED'. Paused tags are excluded. If every matched tag passes hasBuiltInCoverage(t, 'analytics_storage'), the rule emits a low-severity reassurance finding — Built-In consent is active and handles Consent Mode v2 automatically. If any matched tag lacks Built-In coverage, the rule emits a high-severity finding indicating the tag fires without consent enforcement.

Why it matters

Native GA4 event tags in GTM (Google Tag Manager) carry a Built-In analytics_storage consent signal. When consent is denied, GA4 sends cookieless pings instead of full tracking — NOT_NEEDED as the Additional setting is correct in that case. Non-native implementations (Custom HTML tags using gtag(), third-party templates without Built-In consent) have no such fallback. A NOT_NEEDED tag without Built-In coverage fires unconditionally, collecting behavioral data regardless of the user's consent choice. Regulatory: GDPR Art. 6 (lawful basis), GDPR Art. 7 (consent).

Before / after

{
  "type": "gaawe",
  "name": "GA4 - page_view",
  "consent": "NOT_NEEDED",
  "builtInConsent": []
}
{
  "type": "gaawe",
  "name": "GA4 - page_view",
  "consent": "NEEDED",
  "consentSettings": {
    "consentTypes": ["analytics_storage"]
  },
  "builtInConsent": ["analytics_storage"]
}

Remediation

  1. Open each flagged GA4 event tag in GTM and check the Consent Settings panel.
  2. Confirm whether the tag is a native GA4 Event tag or a Custom HTML tag using gtag().
  3. If native with Built-In analytics_storage already active, no change is needed — NOT_NEEDED is correct.
  4. If native but Built-In consent is missing, enable the Built-In analytics_storage consent signal in the tag's Advanced Settings.
  5. If Custom HTML or a non-native template, change the consent setting to NEEDED and add analytics_storage to the required consent types.
  6. Migrate Custom HTML gtag() implementations to native GTM GA4 Event tags when the timeline allows.

Metadata

Severity
high
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

Examples

Evaluate
curl https://developer.tagmanifest.com/v1/evaluate-rule \
  -H "Authorization: Bearer $TM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rule_id":"consent-ga4-not-needed","url":"https://example.com"}'