Good newz, everyone!
Now, in the Measurement Protocol request payload, you can include recently introduced consent attributes to ensure that GA4 takes into account user preferences regarding consent. As you might have guessed, these attributes encompass:
- ad_user_data: can take the values "granted" or "denied" and manages the consent process for sending user data to Google for advertising purposes.
- ad_personalization: can take the values "granted" or "denied" and governs consent for personalized advertising (e.g., remarketing).
Interestingly, if these attributes are absent in the request, GA4 servers will utilize consent mode settings from other interactions for the client or app instance (provided valid client_id and session_id values are given).
Fascinating.
If you work with GA4 to BigQuery exports, be sure to check out my SQL cheat sheet.