ALEventService Class Reference
Inherits from | NSObject |
---|---|
Declared in | ALEventService.h |
– trackEvent:
Track an event of a given type.
- (void)trackEvent:(alnonnull NSString *const)eventType
Parameters
eventType |
A string describing this event; can one of the predefined kALEventType constants defined in ALEventTypes.h, or a custom string. |
---|
Discussion
Track an event of a given type.
For many event types, it is preferable to provide additional data by using trackEvent:parameters: instead.
Declared In
ALEventService.h
– trackEvent:parameters:
Track an event of a given type.
- (void)trackEvent:(alnonnull NSString *const)eventType parameters:(alnullable NSDictionary *)parameters
Parameters
eventType |
A string describing this event; can one of the predefined kALEventType constants defined in ALEventTypes.h, or a custom string. |
---|---|
parameters |
A dictionary containing key-value pairs further describing this event. Particular data points of interest are provided as “suggested keys” in the doc comment for each event type constant in ALEventTypes.h |
Discussion
Track an event of a given type.
Declared In
ALEventService.h
– trackInAppPurchaseWithTransactionIdentifier:parameters:
Track an in app purchase.
- (void)trackInAppPurchaseWithTransactionIdentifier:(alnonnull NSString *const)transactionId parameters:(alnullable NSDictionary *)parameters
Parameters
transactionId |
Value of SKTransaction’s transactionIdentifier property. |
---|---|
parameters |
A dictionary containing key-value pairs further describing this event. You should provide, at a minimum, kALEventParameterRevenueAmountKey and kALEventParameterRevenueCurrencyKey. We also recommend passing kALEventParameterProductIdentifierKey. If you pass a value for kALEventParameterStoreKitReceiptKey, it will be used for validation. Otherwise, we will automatically collect [[NSBundle mainBundle] appStoreReceiptURL] and use it for validation. |
Discussion
Track an in app purchase.
Declared In
ALEventService.h
– trackCheckoutWithTransactionIdentifier:parameters:
Track a checkout / standard purchase.
- (void)trackCheckoutWithTransactionIdentifier:(alnullable NSString *const)transactionId parameters:(alnullable NSDictionary *)parameters
Parameters
transactionId |
An optional unique identifier for this transaction, as generated by you; for Apple Pay transactions, we suggest PKPaymentToken’s transactionIdentifier property. |
---|---|
parameters |
A dictionary containing key-value pairs further describing this event. You should provide, at a minimum, kALEventParameterRevenueAmountKey and kALEventParameterRevenueCurrencyKey. We also recommend passing kALEventParameterProductIdentifierKey. |
Discussion
Track a checkout / standard purchase.
Declared In
ALEventService.h