Type Function Return value none Revision Release 2025.3714 Keywords analytics, attribution, AppsFlyer, setHasUserConsent See also appsflyer.*
AppsFlyer provides you with an ability to annonymize specific user identifiers in AppsFlyer analytics. This complies with the latest privacy requirements and complies with Facebook data and privacy policies.
appsflyer.setHasUserConsent( Boolean )
local appsflyer = require( "plugin.appsflyer" ) local function appsflyerListener( event ) if event.phase == "init" then appsflyer.setHasUserConsent( true ) end end -- Initialize plugin appsflyer.init( appsflyerListener, { appID = "YOUR_APP_ID", devKey = "YOUR_DEV_KEY" } )