IAnalyticsTracker
@protocol IAnalyticsTracker
Protocol implemented by classes that can send analytics events.
-
Creates and sends a new Analytics event with the given n, st1, st2, st3, v, and json_data parameters respectively.
Declaration
Swift
- (void)sendAnalyticsEventWithName:(nullable NSString *)name category:(nullable NSString *)cat subcat1:(nullable NSString *)subcat1 subcat2:(nullable NSString *)subcat2 value:(nullable NSString *)value params:(nullable NSArray<NSString *> *) customParameters;Parameters
nameThe analytic shortname.
catst1 shortname
subcat1st2 shortname
subcat2st3 shortname
valueThe main value parameter used by most events.
customParametersAdditional event parameters.
-
Creates and sends a new In-App Purchase event with
iap
,IAP
,IAP_SUCCESS
, productID, and usdPrice DarkMatter DarkMatter-Jazzy.h DarkMatter.xcodeproj DarkMatterApiDocs DarkMatterResources DarkMatterTestApp DarkMatter_4.1.0_iOS.zip DarkMatter_4.1.1_iOS.zip Documentation JazzyBuild darkmatter.sh darkmatter.sh.readme.txt 100 as the n, st1, st2, st3, and v parameters respectively.Declaration
Swift
- (void) sendPurchaseEventWithProductID:(nullable NSString *)productID price:(float)usdPrice transactionTime:(nullable NSString *)transactionTimeInMillis transactionID:(nullable NSString *)transactionID params:(nullable NSArray<NSString *> *)customParameters;Parameters
productIDThe unique product ID that the store uses.
usdPriceThe price of the product on the store in US dollars.
transactionTimeInMillisThe time in milliseconds from when the user clicked on the product to buy it to when it was successful. It is sent in the custom parameters.
transactionIDThe unique identifier for the transaction.
customParametersContains any other custom parameters you wish to send.
IAnalyticsTracker Protocol Reference