1. Publishing the widget on your site
Once your cookie widget is finalized, go to the "Integrate on your site" section:
In this section you will find the script to integrate Axeptio on your site.
<script>window.axeptioSettings = { clientId: "XXXXXXXXXXXXXXX", cookiesVersion: "myCookiesVersion", googleConsentMode: { default: { analytics_storage: "denied", ad_storage: "denied", ad_user_data: "denied", ad_personalization: "denied", wait_for_update: 500 } }}; (function(d, s) { var t = d.getElementsByTagName(s)[0], e = d.createElement(s); e.async = true; e.src = "//static.axept.io/tcf/sdk.js"; e.type = "module"; t.parentNode.insertBefore(e, t);})(document, "script");</script>
For Axeptio to control your other services, it is recommended to load this script as early as possible on your site, for example at the top of your tag
.
Once the script is integrated into your site, don't forget to publish your Axeptio project if you haven't already done so to put your widget online on our servers.
The cookie widget should now appear on your site.
2. Conditioning your third-party services to consent
Now that Axeptio is properly present on your site, let's see how to submit your various third-party services to consent.
For IAB vendors:
IAB vendors, that is to say services that are compatible with the IAB TCF protocol, automatically read the consent via the tcString. For all these services, you will have nothing more to do. You can find the complete list of IAB vendors here:
If you encounter problems integrating Axeptio with an IAB vendor, check that Axeptio is properly loaded and that the TCF protocol is properly initialized before loading the vendor.
For other services:
Services that are not compatible with the IAB TCF protocol must be managed manually, so that they are not loaded until the user has consented.
If you load these services via Google Tag Manager
When consent is updated, Axeptio sends Google Tag Manager an "axeptio_update" event, as well as an "axeptio_authorized_vendors" variable, which contains the list of all accepted services:
You can use this event and this variable to condition your GTM tags, so that they are triggered only if the service they are attached to has been accepted.
For example, I have a Facebook Pixel initialization tag, currently triggered on every page load ("All pages").
Instead of this trigger, I will be able to create a new one based on the Axeptio event:
To create the "axeptio_authorized_vendors" variable, go to the "Variables" section of your GTM, then create a new one. In the variable type, select the banner at the top "Discover more variable types in the community template gallery" and search for the Axeptio template:
All you'll need to do is name your variable:
If you load these services directly, you can follow this documentation:
