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 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[])
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.getAttributionInfo()
Returns: JSON
Tenjin.appendAppSubversion(subversion: number)
Tenjin.eventAdImpressionAdMob(json)
Parameters:
json
: JSON
Tenjin.eventAdImpressionAppLovin(json)
Parameters:
json
: JSON
Tenjin.eventAdImpressionHyperBid(json)
Parameters:
json
: JSON
Tenjin.eventAdImpressionIronSource(json)
Parameters:
json
: JSON
Tenjin.eventAdImpressionTopOn(json)
Parameters:
json
: JSON
Tenjin.eventAdImpressionTradPlus(json)
Parameters:
json
: JSON
Tenjin.eventAdImpressionCAS(json)
Parameters:
json
: JSON
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 [email protected]