• Resolved swinggraphics

    (@swinggraphics)


    In a custom script, I want to set a variable based on cmplz_has_consent('marketing'). I tried jQuery(document).on("cmplz_run_after_all_scripts"…but it doesn’t work consistently. For example, if “Respect Do Not Track and Global Privacy Control?” is enabled, cmplz_run_after_all_scripts does not fire.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @swinggraphics,

    The cmplz_cookie_banner_data hook would also fire with the “Respect Do Not Track and Global Privacy Control?” option enabled and when DNT is detected in the browser.

    document.addEventListener("cmplz_cookie_banner_data", function() {
    	// do something
    });

    Hope it helps! Kind regards, Jarno

    Thread Starter swinggraphics

    (@swinggraphics)

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need JS hook that always fires after Complianz is ready’ is closed to new replies.