Tracking consent Client-side API
TrackingConsentManager. The object is responsible for displaying a tracking consent dialog and storing user choice.
TrackingConsentManager object has following methods:
Initializes the object by specifying template for consent dialog.
true, if current user has provided consent, otherwise, returns
Updates the user consent. If this method is invoked with true, Sitefinity CMS considers that the user has provided consent for being tracked.
Initialized and displays the user consent dialog.
Register event handler for a specific event.
Cleans up event handler for a specific event.
TrackingConsentManager triggers the following events:
Triggered right after consent dialog is added to the DOM.
Triggered before consent dialog template is removed from the DOM.
Triggered when user consent is changed.
: For examples of how to use these methods and events, see: