consent.get
Method to receive Commanders Act consent and consent metadata OnSite via JavaScript.
Last updated
Was this helpful?
Method to receive Commanders Act consent and consent metadata OnSite via JavaScript.
Last updated
Was this helpful?
cact('consent.get', function (result) { ... });
The consent.get
method takes one callback JavaScript function as an argument that gets called with the that is currently stored on the browser. The callback is called once after Commanders Act CMP JavaScript loaded and validated the stored consent.
In this example the Analytics category was configured with the consent category id 2 in Commanders Act banner.
In this example the Analytics category was configured with the consent category id 2 and the vendor Google with vendor id 5 in Commanders Act CMP.