Track custom events in your iOS app

You can send any activities performed by users in your mobile app to HelpCrunch.
Written by Andrew
Updated 6 months ago

You can send any customer activities performed by users in your mobile app to HelpCrunch.

For example, you could track how users navigate in your mobile app, what screens users visit, what goods they have added to their shopping cart, what goods they have purchased in your app, etc.

You can submit an event using the trackEvent: method. This will associate the event with the currently logged-in user and send it to HelpCrunch.

ObjC:

[HelpCrunch trackEvent:@"eventName"];
or
[HelpCrunch trackEvent:@"eventName" data:@{@"tariff" : @23, 
                                           @"name" : @"Sam", 
                                           @"age" : @41}]; 

Swift:

HelpCrunch.trackEvent("eventName")
or
HelpCrunch.trackEvent("eventName" data:["tariff" : @23, 
                                        "name" : "Sam", 
                                        "age" : 41])

Once you start sending this data to HelpCrunch, events will be tracked and shown in a customer's profile with the most recent events on top:

Did this answer your question?