Tracking Events
Tracking Custom Events
import Growlytics
class MyController: UIViewController {
func myfunction() {
/**
Your Login Logic
**/
let eventAttributes: [String:Any] = [
"Product ID": 1337,
"Price": 39.80,
"Quantity": 1,
"Product": "Givenchy Pour Homme Cologne",
"Category": "Fragrance",
"Currency": "USD",
"Is Premium": true
]
Analytics.getInstance().track("Product Purchased", eventAttributes)
}
}Guidelines
Last updated
Was this helpful?
