JavaScript: Window Events Overview
Use our JS events as triggers for custom logic
Last updated About 15 hours ago
Consent Studio JavaScript browser events
Window events
These events are dispatched within the window context in JavaScript.
These JavaScript events can help you trigger custom JavaScript logic. But did you know that we already have prepared a set of useful integrations for you? Discover our integrations here Β»
Consent updates
Functional consent granted:
consent-studio__updated__granted__functionalAnalytics consent granted:
consent-studio__updated__granted__analyticsMarketing consent granted:
consent-studio__updated__granted__marketingFunctional consent denied:
consent-studio__updated__denied__functionalAnalytics consent denied:
consent-studio__updated__denied__analyticsMarketing consent denied:
consent-studio__updated__denied__marketingExample use
window.addEventListener('consent-studio__updated__granted__analytics', function() {
alert('Consent Studio parsed or received consent for the analytics category');
});