How to interact between our CMP and Google Analytics ( GA4 )
Choose the best way to control GA: 3 options
Option 1: Using Transparency and Consent Framework ( IAB TCF)
Google is registed as a vendor (755) and Google Analytics product is covered.
In order to ask GA to honor TCF signals, just add this line of code BEFORE any call to gtag().
This window property must be set before any calls to gtag() are made, and this property must be set on each page for which you want to enable TCF support. If the property is not set or set to false, TCF support will not be activated.
For exemple, you can enable it while you do the init of our CMP.
Depending of the user choice, GA will honor user choices according to the following table
A "Purpose" in the TCF context is a defined intent for processing data. Google Analytics tags implemented via Google Tag Manager or gtag.js with TCF support enabled will handle requests that contain the consent string in the following ways:
Impact to Google Analytics when Purpose is denied
Store and/or access information on a device
Advertising-related cookies will not be created or used by Google Analytics. Google signals features such as remarketing, demographics, and interests reports will not accumulate data for unconsented users.
Create a personalised ads profile
Hits to Google Analytics will be marked with an npa=1 parameter.
Events marked with npa=1 are not eligible for ads personalization, and are not used for remarketing audience evaluation. Users already added to audience lists are unaffected.
Measure ad performance
allow_google_signals will be set to false.
Advertising-related cookies will not be used by Google Analytics. Google signals features such as remarketing, demographics, and interests reports will not accumulate data for unconsented users.
Apply market research to generate audience insights