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

kochava.setIdentityLink()

Type Function
Return value none
Revision Release 2025.3714
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" } )

© 2020-2025 Solar2D All Rights Reserved.

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

Report an Issue