• Getting Started
  • Guides
  • API Reference
  • Plugins
  • Corona Enterprise
  • CoronaCards
  • kochava.setIdentityLink()
    • Overview
    • Syntax
      • linkTable (required)
    • Example
Documentation  ▸  Plugins  ▸  Kochava  ▸  setIdentityLink

kochava.setIdentityLink()

Type Function
Return value none
Revision 2017.3060
Keywords analytics, attribution, Kochava, setIdentityLink
See also kochava.*

Overview

Links the Kochava device ID with user-defined identities. This provides you the opportunity to link different identities together. For example, you may have assigned each user of your app an internal user ID which you want to connect to a user's service identifier. Using this method, you can send both your internal user ID and their service identifier and connect them in the Kochava database.

Note

A maximum of two key-value pairs can be set with each call.

Syntax

kochava.setIdentityLink( linkTable )
linkTable (required)

Table. A table containing key-value pairs.

Example

local kochava = require( "plugin.kochava" )

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

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

kochava.setIdentityLink( { myInternalUserID="12345" } )

© 2017 Corona Labs Inc. All Rights Reserved. (Last updated: 18-Mar-2017)

Help us help you! If you notice a problem with this page, please report it.

Report an Issue