🚧 For Axeptio to send consent events to Google Analytics, GA must already be loaded before consent. To remain compliant, this is only possible with Consent Mode v2 in advanced mode: Documentation
When you activate our Google Analytics connector, Axeptio will send 2 events to Google Analytics.
The events:
consent.display: The Axeptio widget appeared on a page
consent.answer: The user interacted with the consent widget
Custom dimensions for consent.answer
The consent.answer event sends 2 parameters
privacy_consent_value
This parameter can have 3 different values:
full: all cookies / third-party services are accepted by the user
partial: some cookies are accepted by the user. Others are refused.
refusal: all cookies / third-party services are refused by the user
privacy_consent_type
This parameter can have 2 different values:
true: the user accepted at least 1 cookie / third-party service
false: the user did not accept any cookie / third-party service
Add these 2 dimensions to your Google Analytics 4 interface.
Go to the settings / administration section of your Google Analytics account, in the custom dimensions section.
Here is the result:
Verify the implementation
If you are using Google Tag Manager, you can launch a preview of your website. Google Analytics' debug_mode parameter will be active. If you are only using Gtag, add the debug_mode to your config.
In Google Analytics, go to DebugView
In another window, use the preview version in Google Tag Manager to display your website. After a few seconds, you will see your visit in Google Analytics and you will have the events sent by Axeptio.
The Axeptio events
Detail of the consent.answer event
Display your statistics in Google Analytics Explorer
You now have additional data that is recorded in Google Analytics. In the explorer section, you can create your dashboards.
Display the number of widgets displayed = Total consent.display events
Interaction with the consent widget = Total consent.answer events
You can thus calculate your consent rate, interaction rate and analyze the impact on your website.
