- Help Center
- FAQ
- CMP / Managing tags
Didomi’s functions to verify the user’s choices
To check user choices in Didomi, you can use various functions provided by the Didomi SDK. These functions allow you to access the user's consent status in real-time and take actions based on that status. Here are some of the most useful functions:
Didomi.reset()
Reset Didomi (clear consent user status)
Didomi.getConfig()
Get the full configuration of the notice being displayed
Didomi.getCurrentUserStatus():
It allows you to obtain the complete consent status of the user, including consents for all purposes and vendors.
Didomi.getUserStatus().vendors.global
It retrieves the global consent status for all vendors configured in your Didomi consent notice.
window.didomiRemoteConfig
Get the ID of the notice being displayed
Didomi.getRequiredPurposes():
It retrieves a list of all the purposes that are required based on the configuration of your Didomi setup.
Didomi.getRequiredVendors():
It retrieves a list of all the vendors that are required based on your Didomi configuration
For more detailed information, please refer to the Didomi Developer Documentation on API Reference.