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

    name

    The analytic shortname.

    cat

    st1 shortname

    subcat1

    st2 shortname

    subcat2

    st3 shortname

    value

    The main value parameter used by most events.

    customParameters

    Additional 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

    productID

    The unique product ID that the store uses.

    usdPrice

    The price of the product on the store in US dollars.

    transactionTimeInMillis

    The 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.

    transactionID

    The unique identifier for the transaction.

    customParameters

    Contains any other custom parameters you wish to send.