Analytics
@objcMembers
@objc(GetSocialAnalytics)
public class Analytics : NSObject
Defines interface for Analytics.
-
Report in-app purchase.
Declaration
Swift
@discardableResult @objc(trackPurchase:) public static func trackPurchase(_ data: PurchaseData) -> Bool
Parameters
data
Purchase details.
Return Value
true
, if operation was successful, otherwisefalse
. -
Report custom event.
Declaration
Swift
@discardableResult @objc(trackCustomEvent:properties:) public static func trackCustomEvent(_ event: String, properties: [String : String]?) -> Bool
Parameters
event
Event name.
properties
Event properties.
Return Value
true
, if operation was successful, otherwisefalse
.