Skip to main content

Google Analytics management

The notice had a script called GCM for Google Consent Mode that blocks Google Analytics by preventing to dropping cookies or scripts before the user's consent. This script unlock Google Analytics after the user's consent depending on their choices. By default this script is disable.

Warning

We advise you to activate GCM if you use Google Analytics. But for specific needs, you can leave the blocking disabled, in which case you will need to set up another solution on your website to block Google Analytics.


Enable GCM

To do this, set the parameter enableGCM of the configSFBXAppConsent notice configuration variable in the <head> section to true

<script type="text/javascript">
const configSFBXAppConsent = {
appKey: 'YOUR_APP_KEY',
enableGCM: true
}
</script>