HyperwalletInsightsProtocol
public protocol HyperwalletInsightsProtocol : AnyObject
Protocol for HyperwalletInsights
-
Track Clicks
Declaration
Swift
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 Impressions
Declaration
Swift
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
-
Track Error
Declaration
Swift
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
The ErrorInfo structure is used to describe an occurred error