HyperwalletInsights
public class HyperwalletInsights : HyperwalletInsightsProtocol
Class responsible for initializing the Insights module. It contains methods to call Insights for various actions performed by the user
-
Returns the previously initialized instance of the HyperwalletInsights interface object
Declaration
Swift
public static var shared: HyperwalletInsights { get } -
Clears Insights SDK instance.
Declaration
Swift
public static func clearInstance() -
Set up HyperwalletInsights
Declaration
Swift
public static func setup() -
Track Clicks
Declaration
Swift
public func trackClick(pageName: String, pageGroup: String, link: String, params: [String : String])Parameters
pageNameName of the page
pageGroupPage group name
linkThe link clicked - example : select-transfer-method
paramsA list of other information to be tracked - example : country,currency
-
Track Error
Declaration
Swift
public func trackError(pageName: String, pageGroup: String, errorInfo: ErrorInfo)Parameters
pageNameName of the page - example : transfer-method:add:select-transfer-method
pageGroupPage group name - example : transfer-method
ErrorInfoErrorInfo have the information about the error
-
Track Impressions
Declaration
Swift
public func trackImpression(pageName: String, pageGroup: String, params: [String : String])Parameters
pageNameName of the page - example : transfer-method:add:select-transfer-method
pageGroupPage group name - example : transfer-method
paramsA list of other information to be tracked - example : country,currency
View on GitHub