Event tracking (Custom events)
Add custom events to track a better users' journey
First installation
Appflow.shared.analytics.uploadBigDataWithType(eventType: .firstOpen, params: nil)The App launched
Appflow.shared.analytics.uploadBigDataWithType(eventType: .appStart, params: nil)The App current uv
Appflow.shared.analytics.uploadBigDataWithType(eventType: .screenView, params: [
kScreenViewName: kHomepage
])
or
let model = ParamModel()
model.screenType = ParamScreenHome
Appflow.shared.analytics.uploadBigDataWithType(eventType: .screenView, paramModel: model)Ads click
Appflow.shared.analytics.uploadBigDataWithType(eventType: .adsClick, params: [
kPlacement: kQuickClean,
kFormat: kBanner
])
or
let model = ParamModel()
model.placeType = ParamPlaceClean
model.formatType = ParamFormatBanner
Appflow.shared.analytics.uploadBigDataWithType(eventType: .adsClick, paramModel: model)Ads show
ev_User_Engagement
**If you need a callback in the above method, do something like this
**If the above enumeration does not meet the requirements, extend it as follows
Swift
For now, we have limited the number of Custom events you can send to Appflow.ai. The current limit is 10 custom events per app. To register them you need to go to Settings=> Apps=> Edit app=> Add custom events

Last updated
Was this helpful?