kochavaFAA.init()

Type Function
Return value none
Revision 2017.3060
Keywords analytics, attribution, Kochava Free App Analytics, init
See also kochavaFAA.*

Overview

kochavaFAA.init() initializes the Kochava SDK.

Once initialized, you can call any of the other functions such as kochavaFAA.logStandardEvent().

Syntax

kochavaFAA.init( listener, params )
listener (required)

Listener. Listener that will receive analyticsRequest events.

params (required)

Table. Table containing Kochava initialization values — see the next section for details.

Parameter Reference

The params table includes parameters for the Kochava initialization.

appGUID (required)

String. Your App GUID, gathered from the Kochava Free App Analytics system.

limitAdTracking (optional)

Boolean. Limits ad tracking when set to true. Default is false.

enableDebugLogging (optional)

Boolean. Debug logging will display extra information in the device log for easier troubleshooting. Default is false.

enableAttributionData (optional)

Boolean. Request for attribution data to be retrieved from Kochava. The data will be sent to the Corona listener given when calling this function. Default is false.

Example

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

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

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