# Integrating with Consent Mode 2

# Cookiebot

Our integration automatically captures CookiebotOnAccept event and disables Edrone cookies when captured.

With Cookiebot properly integrated, there is no need to do any additional work in order to make your Edrone integration compatible with Consent Mode.

# Custom integration

After user decides whether he want to accept the cookies or not, you need to call the function _edrone.set_cookie_consent(cookie_status) to inform the script that he is / is not allowed to send the cookies.

Example:

window.addEventListener('onCookieAccept', function(e) {
    _edrone.set_cookie_consent(user.is_accepting_marketing);
});