⚠️ The cookie name is not necessarily the same as the one displayed on your widget.
There are three ways to retrieve the cookie names.
From your Axeptio project
In your Axeptio back office, click on the desired cookie.
You will find all its characteristics, including its name as recognized by our API:
Via the browser console
Once cookies have been accepted, open your browser’s developer console:
From your web browser, right-click on the page of your site using Axeptio
Select Inspect
Then type datalayer and press Enter
You will get a list that you can expand by clicking on the small arrows at the beginning of each line.
Expand the lines event, axeptio_update, then axeptio_authorized_vendors until you see the list of accepted cookies and their names:
Using GTM preview mode
⚠️ This procedure only works if GTM is properly linked to your site and the Axeptio widget is installed there.
Click on Preview at the top right of your GTM page
Enter your site’s URL and launch it
This operation gives you access to two pages:
The Tag Assistant preview page
The page of the specified URL
Once cookies have been accepted on your site:
Go to the preview page
Select the axeptio_update event from the list on the left
Then select the Variables tab
You will then get all the variables used by GTM: