Type Function Return value none Revision Release 2024.3703 Keywords analytics, attribution, Kochava, setHasUserConsent See also kochava.*
If you've enabled intelligentConsentManagement
init parameter, you'll be getting a notification from Kochava when you should promt your user to set a consent status to be GDPR compliant. Consent status changes occur when an actionable change occurs with consent. This includes but is not limited to required changing, consent being revoked from a new partner or prompt ID, and the consent retry timer expiring.
kochava.setHasUserConsent( Boolean )
local kochava = require( "plugin.kochava" ) local function kochavaListener( event ) if event.phase == "recieved" then if event.type == "consent" then kochava.setHasUserConsent( true ) end end end -- Initialize plugin kochava.init( kochavaListener, { appGUID = "YOUR_APP_GUID", intelligentConsentManagement = true } )