Récupérer son token utilisateur Axeptio depuis la console du navigateur
The axeptioSDK.getToken() method returns the unique token that identifies a visitor's consent choices on your website. This token is typically requested by Axeptio Support when investigating a consent-related issue for a specific visitor.
When to use this method
Support is investigating a consent bug tied to a specific visitor session
You need to verify that consent was correctly stored for a given browser
You want to link a visitor's consent to an external system for debugging purposes
Prerequisites
The page you are testing must have the Axeptio SDK loaded and initialized
Step-by-step
1. Open the page where Axeptio is installed.
2. Open your browser's Developer Tools:
Windows / Linux:
F12orCtrl + Shift + ImacOS:
Cmd + Option + I
3. Click the Console tab.
4. Type the following command and press Enter:
axeptioSDK.getToken()
5. Copy the string returned below the command. This is your user token.
Expected result
The console returns a string that looks like this:
"6a1f8c2e-4b7d-9e3a-8f5c-1d2b3a4c5e6f"
This is the token to share with your consent registry.
Common errors
Uncaught ReferenceError: axeptioSDK is not defined The Axeptio SDK has not loaded on this page. Check that the integration script is present in the page source and that no ad blocker is interfering with its loading.
The method returns undefined or null No consent has been collected yet for this browser. Interact with the consent widget first, then run the command again.
