kochavaFAA.getAttributionData()

Type Function
Return value none
Revision Release 2024.3703
Keywords analytics, attribution, Kochava Free App Analytics, getAttributionData
See also kochavaFAA.*

Overview

Get attribution data from Kochava.

This function will return attribution data to the Corona listener specified in kochavaFAA.init(). If no data is available, event.data will contain the value false.

Important

This function will only return data if the enableAttributionData parameter was set to true when calling kochavaFAA.init().

Syntax

kochavaFAA.getAttributionData()

Example

local kochavaFAA = require( "plugin.kochava.faa" )

local function kochavaListener( event )
    -- Handle events here
end

-- Initialize plugin
kochavaFAA.init( kochavaListener,
    {
        appGUID = "YOUR_APP_GUID",
        enableAttributionData = true
    }
)

-- Sometime later, get attribution data
kochavaFAA.getAttributionData()