Skip to main content
All CollectionsCookie banner 🍪Analytics Connectors
Axeptio Connection with Google Analytics 4 (gtag)

Axeptio Connection with Google Analytics 4 (gtag)

M
Written by Manon Manso
Updated over a week ago

🚧 To allow Axeptio to send consent events to Google Analytics, GA must 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.

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 has accepted at least 1 cookie/third-party service

  • false: the user has accepted no cookies/third-party services

Add these 2 dimensions in your Google Analytics 4 interface.

Go to the settings/administration section of your Google Analytics account, under custom dimensions.

Here is the result:

dimension-personnalisee.png

Check the implementation

If you use Google Tag Manager, you can launch a preview of your website. The debug_mode parameter of Google Analytics will be active. If you only use Gtag, add the debug_mode in your config.

In Google Analytics, go to DebugView

Axeptio events

debug_view.png

Details of the consent.answer event

consent answer.png

View your statistics in Google Analytics Explorer

You now have additional data recorded in Google Analytics. In the Explorer section, you can create your dashboards.

Display of the number of widgets shown = Total events consent.display

Interaction with the consent widget = Total events consent.answer

You can then calculate your consent rate, interaction rate, and analyze the impact on your website.

Did this answer your question?