Tenjin's SDK allows users to track events and installs in their iOS apps. To learn more about Tenjin and our product offering, please visit https://www.tenjin.com.
On iOS:
For AppTrackingTransparency, be sure to update your project .plist
file and add NSUserTrackingUsageDescription
along with the text message you want to display to users. This library is only available in iOS 14.0+. For further information on this, you can check our iOS documentation
On Android: You will need to add Google's Install Referrer Library to your gradle dependencies. If you haven’t already installed the Google Play Services you also need to add it
dependencies {
classpath("com.android.installreferrer:installreferrer:1.1.2")
classpath("com.google.android.gms:play-services-analytics:17.0.0")
}
npm install ionic-capacitor-tenjin
npx cap sync
import Tenjin from 'ionic-capacitor-tenjin';
You need to initialize the plugin before doing calling any of the other methods available, for this, you would need the api key provided on Tenjin's dashboard:
Tenjin.initialize(sdkKey: string)
Tenjin.connect()
Tenjin.optIn()
Tenjin.optOut()
Tenjin.optIn(params: string[])
Tenjin.optOut(params: string[])
transaction(productName: string, currencyCode: string, quantity: number, unitPrice: number)
Tenjin.eventWithName(name: string)
Tenjin.eventWithNameAndValue(name: string, value: string)
Tenjin.appendAppSubversion(subversion: number)
Tenjin supports the ability to integrate with the Impression Level Ad Revenue (ILRD) feature from,
- AppLovin
- IronSource
- HyperBid
- AdMob
- TopOn
This feature allows you to receive events which correspond to your ad revenue that is affected by each advertisement show to a user. To enable this feature, follow the below instructions.
Tenjin supports retrieving of attributes, which are required for developers to get analytics installation id (previously known as tenjin reference id). This parameter can be used when there is no advertising id.
Tenjin.setCustomerUserId(userId)
Parameters:
userId
: string
Tenjin.getCustomerUserId()
Returns: string
Tenjin.updatePostbackConversionValue(conversionValue)
Parameters:
conversionValue
: number
Tenjin.updatePostbackConversionValueCoarseValue(conversionValue, coarseValue)
Parameters:
conversionValue
: numbercoarseValue
: string
Tenjin.updatePostbackConversionValueCoarseValueLockWindow(conversionValue, coarseValue, lockWindow)
Parameters:
conversionValue
: numbercoarseValue
: stringlockWindow
: boolean
If you have any issues with the plugin integration or usage, please contact us to support@tenjin.com