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
npm install ionic-capacitor-tenjin
npx cap syncimport 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[])Tenjin.optInOutUsingCMP()Tenjin.optOutGoogleDMA()Tenjin.optInGoogleDMA()transaction(productName: string, currencyCode: string, quantity: number, unitPrice: number)Tenjin.eventWithName(name: string)Tenjin.eventWithNameAndValue(name: string, value: string)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.
Warning
Attribution Info is a paid feature, so please contact your Tenjin account manager if you are interested in.
Tenjin.appendAppSubversion(subversion: number)Tenjin supports the ability to integrate with the Impression Level Ad Revenue (ILRD) feature from,
- AppLovin
- Unity LevelPlay
- AdMob
- TopOn
- Clever Ads Solutions (CAS)
- TradPlus
Warning
ILRD is a paid feature, so please contact your Tenjin account manager to discuss the price at first before sending ILRD events.
Tenjin.setCustomerUserId(userId)Parameters:
userId: string
Tenjin.getCustomerUserId()Returns: string
Tenjin.getAnalyticsInstallationId()Returns: string
Tenjin.setGoogleDMAParametersWithAdPersonalization(adPersonalization, adUserData)Parameters:
adPersonalization: BooleanadUserData: Boolean
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