tenjin.*

Type Library
Revision Release 2024.3703
Keywords analytics, attribution, Tenjin
Platforms Android, iOS

Overview

The Tenjin plugin is used for advertising analytics, also known as attribution. It helps studios who run multiple advertising campaigns for their apps understand where their users are coming from. With this information, they can see the effectiveness of their spending and optimize their campaigns accordingly.

Important

Check out new hasUserConsent init parameter to enable GDPR data collection restrictions.

Registration

Before using this plugin, you'll need to register with Tenjin to receive an API key.

Syntax

local tenjin = require( "plugin.tenjin" )

Functions

Events

Project Settings

To use this plugin, add an entry into the plugins table of build.settings. When added, the build server will integrate the plugin during the build phase.

settings =
{
    plugins =
    {
        ["plugin.tenjin"] =
        {
            publisherId = "com.coronalabs"
        },
    },
}
Important

For iOS, when submitting your app to the App Store, follow these guidelines:

  • Make sure you select yes when asked if your app uses the Advertising Identifier (IDFA).
  • Ensure that the Attribute this app installation to previously served advertisement box is checked.
Note

For Android, the following permissions/features are automatically added when using this plugin:

  • "android.permission.INTERNET"

Support