import UserX
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
UserX.initialize(withAppKey: "YOUR_APP_KEY")
return true
}
UserX.logEvent("registration", parameters: ["method": "email"])
UserX.logEvent("purchase", parameters: ["item_id": "12345", "price": 9.99])
UserX.logEvent("feature_use", parameters: ["feature_name": "chat"])
import UserX
UserX.setUserProperty("age", value: "25")
UserX.setUserProperty("gender", value: "female")
UserX.setUserProperty("location", value: "New York")
//Новый пользователь
UserX.logEvent("new_user", parameters: ["registration_date": "2024-05-01"])
//Платящий пользователь
UserX.logEvent("paid_user", parameters: ["purchase_amount": 9.99])
//Пользователь с высоким уровнем активности
UserX.logEvent("active_user", parameters: ["session_count": 50])