Tracking IAP
If you are currently using tracking from Firebase, you need to replace all of them and use tracking from the SDK system.
Class Index com.ikame.android.sdk.billing.IKBillingTrackingHelper
trackLoadRemoteConfig
Trigger: Tracks the remote config load event.
fun trackLoadRemoteConfig(loadStatus: String, loadTime: String)
Parameters:
-
loadStatus
: Status of the load result (success or fail). -
loadTime
: Load time in millisecond.
trackLoadPriceStart
Trigger: Tracks the start of the price loading event.
fun trackLoadPriceStart()
trackLoadPriceLoaded
Trigger: Tracks the completion of the price loading event.
fun trackLoadPriceLoaded(
loadStatus: String,
loadTime: String,
errorDetail: String? = null
)
Parameters:
-
loadStatus
: Status of the load result (success or fail). -
loadTime
: Load time in millisecond. -
errorDetail
: Error details if the load fails, you can place error code here.
trackPremiumScreenOpen
Trigger: Tracks the event when a user accesses a premium screen.
fun trackPremiumScreenOpen(premiumScreenName: String, screenFrom: String)
Parameters:
-
premiumScreenName
: Name of the premium screen accessed by the user. -
screenFrom
: Name of the previous screen (from which screen the user entered the premium screen).
trackPremiumProductSelect
Trigger: Tracks the event when a user selects a product.
fun trackPremiumProductSelect(
premiumScreenName: String,
productId: String,
productType: String,
price: String,
currency: String
)
Parameters:
-
premiumScreenName
: Name of the premium screen the user is currently on. -
productId
: Product ID (consistent with the ID obtained from the store). -
productType
: Product type. -
price
: Price of the product (as a string), maybe need div 1_000_000. Sample: 1.99, 19.99. -
currency
: Currency of the product from the store.
trackPremiumPurchaseFinish
Trigger: Tracks the event when a user successfully completes a purchase.
fun trackPremiumPurchaseFinish(
premiumScreenName: String,
productId: String,
productType: String,
price: String,
currency: String,
purchaseStatus: String,
errorDetail: String? = null
)
Parameters:
-
premiumScreenName
: Name of the premium screen the user is currently on. -
productId
: Product ID (consistent with the ID obtained from the store). -
productType
: Product type. -
price
: Price of the product (as a string), maybe need div 1_000_000. Sample: 1.99, 19.99. -
currency
: Currency of the product from the store. -
purchaseStatus
: Purchase status (success, fail, cancel). -
errorDetail
: Error details if the purchase fails, you can place error code here.
trackPremiumRestore
Trigger: Tracks the restore event.
fun trackPremiumRestore(
premiumScreenName: String,
productId: String,
productType: String,
restoreStatus: String,
price: String,
currency: String
)
Parameters:
-
premiumScreenName
Name of the premium screen the user is currently on. -
productId
Product ID returned when the user restores (consistent with the ID obtained from the store). -
productType
Product name. -
restoreStatus
Status returned when the store succeeds or fails. -
price
Price of the product (as a string), maybe need div 1_000_000. Sample: 1.99, 19.99. -
currency
Currency of the product from the store.