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
pageName
Name of the page
pageGroup
Page group name
link
The link clicked - example : select-transfer-method
params
A list of other information to be tracked - example : country,currency
-
Track Error
Declaration
Swift
public func trackError(pageName: String, pageGroup: String, errorInfo: ErrorInfo)
Parameters
pageName
Name of the page - example : transfer-method:add:select-transfer-method
pageGroup
Page group name - example : transfer-method
ErrorInfo
ErrorInfo have the information about the error
-
Track Impressions
Declaration
Swift
public func trackImpression(pageName: String, pageGroup: String, params: [String : String])
Parameters
pageName
Name of the page - example : transfer-method:add:select-transfer-method
pageGroup
Page group name - example : transfer-method
params
A list of other information to be tracked - example : country,currency