Callbacks
Learn how to use callbacks to respond to consent management events in both JavaScript and React applications.
Available callbacks
onBannerFetched
This callback fires when the consent banner is fetched. It is not invoked in offline
mode.
Property
Types
onConsentSet
This callback is called when the consent is set.
Property
Types
onError
This callback is called when an error occurs.
Property
Types
Implementing Callbacks
Edit on GitHub
Last updated: May 12, 2025