Skip to main content
TagManifest /Docs Dashboard

Non-standard consent types used

Tags use consent types not in the Consent Mode v2 specification (ad_storage, analytics_storage, etc.).

On this page 6

Summary

  • rule_id — consent-nonstandard-type
  • purpose — Detect tags using consent type strings outside the Consent Mode v2 specification
  • effect — Non-standard types are not evaluated by GTM's consent logic; tags may fire when they should not
  • layer — container
  • reversibility — non-destructive

What fires this

The rule iterates over active tags where consent === 'NEEDED' and checks each tag's consentTypes array against a fixed allowlist of six Consent Mode v2 strings: ad_storage, ad_user_data, ad_personalization, analytics_storage, functionality_storage, and security_storage. Any value not in that set is flagged. Findings are grouped by the non-standard type name and report how many tags use each one. Paused tags are excluded. Common observed values include CMP category labels such as performance_cookies, targeting_cookies, and dg-category-marketing.

Why it matters

GTM's (Google Tag Manager's) Consent Mode API evaluates only the six standard type strings. A tag requiring performance_cookies is not blocked or allowed by consent state — GTM has no record of that string. The tag may fire without consent, or be permanently blocked even after a user grants permission. Both outcomes break the consent model. The root cause is almost always a CMP (consent management platform) that maps its own category names directly to GTM instead of translating to the Consent Mode v2 vocabulary. Regulatory: GDPR Art. 6 (lawful basis), GDPR Art. 7 (consent).

Before / after

{
  "tagName": "Google Analytics 4",
  "consent": "NEEDED",
  "consentTypes": ["performance_cookies", "targeting_cookies"]
}
{
  "tagName": "Google Analytics 4",
  "consent": "NEEDED",
  "consentTypes": ["analytics_storage", "ad_storage"]
}

Remediation

  1. Open the finding and note each non-standard consent type and which tags use it.
  2. Map each non-standard type to its Consent Mode v2 equivalent:
    • performance_cookies → analytics_storage
    • targeting_cookies / marketing_cookies → ad_storage
    • functional_cookies → functionality_storage
  3. Update the consent type on each affected tag in GTM to use the standard name.
  4. Check whether the CMP integration offers a native Consent Mode v2 mode that outputs standard type names — enable it if available.
  5. Test in GTM Preview with the CMP in each consent state to confirm tag behavior matches the granted permissions.

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

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-nonstandard-type","url":"https://example.com"}'