kochava.getAttributionData()

Type Function
Return value none
Revision Release 2022.3683
Keywords analytics, attribution, Kochava, getAttributionData
See also kochava.*

Overview

Get attribution data from Kochava.

This function will return attribution data to the Corona listener specified in kochava.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 kochava.init().

Syntax

kochava.getAttributionData()

Example

local kochava = require( "plugin.kochava" )

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

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

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