Events (CCPA for Web)
Events
isLoaded
callback result: {"event":"isLoaded"}
Fired when the full CCPA implementation has been loaded and assigned to window.__ccpa. If the CCPA is loaded before an event listener is added the listener will be fired immediately after being added.
isReady
callback result: {"event":"isReady"}
Fired when the full CCPA implementation has been loaded and all commands from the queue are processed. If the CCPA is ready before an event listener is added the listener will be fired immediately after being added. Event for document is also fired.
consentChanged
callback result: {"event":"consentChanged"}
Fired on every consent change.
consentManagerDisplayed
callback result: {"event":"consentManagerDisplayed"}
Fired when consent manager is displayed.
consentManagerClosed
callback result: {"event":"consentManagerClosed"}
Fired when consent manager is closed.
consentNoticeDisplayed
callback result: {"event":"consentNoticeDisplayed"}
Fired when consent notice is displayed.
consentNoticeClosed
callback result: {"event":"consentNoticeClosed"}
Fired when consent notice is closed.
consentManagerAlreadyShown
callback result: {"event":"consentManagerAlreadyShown"}
Fired if consent manager is already shown and command for show is called.
consentNoticeAlreadyShown
callback result: {"event":"consentNoticeAlreadyShown"}
Fired if consent notice is already shown and command for show is called.
doNotSellMyDataButtonClicked
callback result: {"event":"doNotSellMyDataButtonClicked"}
Fired on do not sell my data button click and set do not sell to true.
saveAndExitButtonClicked
callback result: {"event":"saveAndExitButtonClicked"}
Fired on save and exit button click and set empty opt out consent array.
disabledCookies
callback result: {"event":"disabledCookies"}
Trigger if cookies are disabled.
consentToolShouldBeShown
callback result: {"event":"consentToolShouldBeShown"}
Trigger after ccpa load.