Retrieving your Axeptio user token from the browser console
The axeptioSDK.getToken() method returns the unique token that identifies a visitor's consent choices on your site. This token is generally requested by Axeptio support when investigating a bug related to a specific visitor's consent.
When to use this method
You want to verify that consent has been properly recorded for a given browser
Prerequisites
A desktop browser (Chrome, Firefox, Safari, or Edge)
The tested page must have the Axeptio SDK loaded and initialized
You must have already interacted with the consent widget (accepted, refused, or customized) on this browser
Step-by-step procedure
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 on the Console tab.
4. Type the following command and press Enter:
axeptioSDK.getToken()
5. Copy the string returned under the command. This is your user token.
Expected result
The console returns a character string like this:
"6a1f8c2e-4b7d-9e3a-8f5c-1d2b3a4c5e6f"
This is the token you need to enter in your consent register.
Common errors
Uncaught ReferenceError: axeptioSDK is not defined The Axeptio SDK is not loaded on this page. Verify that the integration script is present in the source code 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, then run the command again.
