Tracking User
Login Customer
import Growlytics
class MyController: UIViewController {
func yourLoginFunction() {
/**
Your Login Logic
**/
// Build Customer Attributes To Pass To Growlytics.
let customerAttributes: [String:Any] = [
// Reserved customer properties (Used in campaigns)
name: 'John Wick',
email: 'john@gmail.com',
mobile: '9876543210',
// Custom properties
subscriptionType: 'pro',
region: 'Mumbai',
totalPurchaseTillNow: 30000
]
// Login User To Growlytics.
Analytics.getInstance().loginUser("Custome_ID", customerAttributes)
}
}Logout Customer
Guidelines
Last updated
Was this helpful?
