How Do WP Consent API Categories Map to Google Consent Mode and IAB TCF

These are predefined categories supported by the WP Consent API:

  • functional
  • preferences
  • statistics
  • statistics-anonymous
  • marketing

Google Consent Mode uses two primary consent signals:

  • analytics_storage
  • ad_storage
  • functionality_storage
  • personalization_storage
  • security_storage
  • ad_user_data
  • ad_personalization

IAB TCF v2.2 Purposes

IAB defines 10 purposes and additional special features and stacks:

  1. Store and/or access information on a device
  2. Select basic ads
  3. Create a personalized ads profile
  4. Select personalized ads
  5. Measure ad performance
  6. Measure content performance
  7. Market research to generate audience insights
  8. Develop and improve products
  9. Ensure security, prevent fraud
  10. Technically deliver ads or content
Google Consent ModeIAB TCF v2.2 Purposes / FeaturesWP Consent API CategoryPurpose
analytics_storage7. Measure content performance 8. Product developmentstatisticsAnalytics, measurement, insights
ad_storage2. Select basic ads 3–6. Ad profiling & measurementmarketingAds, targeting, remarketing, campaign performance
functionality_storage10. Technically deliver ads/contentfunctionalCore site functionality, session cookies
personalization_storage1. Store/access info 4. Personalized content or UIpreferencesUI customization, recommendations, saved settings
security_storage9. Security, fraud preventionfunctionalBot protection, login/session security
ad_user_dataSpecial Feature 1 (Use of precise geolocation or device data)marketingTargeted advertising based on detailed personal data
ad_personalizationPurpose 4 (Create a personalized ads profile)marketingPersonalized ad delivery

Notes:

  • statistics-anonymous is an optional WP Consent API category that can be used to separate fully anonymized analytics. You may choose to use it if your analytics tools allow zero data storage/tracking until full consent is granted.

  • ad_user_data and ad_personalization are Consent Mode v2 extensions and represent deeper levels of ad tracking. These still fall under the marketing category in WP Consent API because they serve advertising purposes.

  • functional in WP Consent API overlaps with both functionality and security categories in Consent Mode. These functions are usually considered essential and might not require explicit consent depending on local regulations.