tenjin.*

Type Library
Revision 2017.3060
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.

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 two entries 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"
        },
        ["plugin.google.play.services"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { android=true }
        },
    },
}
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