Introduction to Custom Events

If you want to track an event that isn’t a predefined event, we also support tracking custom events which enables you to capture all valuable actions taken in your app. By using custom events, you can track events such as user signups, progression in the app, content views, and any other metrics that measure the success of your app.
Custom events can also have properties associated with them. Event properties are key/value pairs of data that provide more detail to the events you are tracking e.g. category of video viewed.
Custom events record the first, last and total number of times a user triggers an event. Once you start tracking events in GetSocial, you can create user segment using these events and target them with push notifications.

User segments can be created based on the following:

  • When a user triggers an event a certain number of times.
  • The first time they trigger an event.
  • The last time they trigger an event
  • Number of days since the first or last time they trigger an action.

In addition to the above, you can also get insights into these user segments and compare it with other segments.

1
2
3
Map<String, String> properties = new HashMap<>();
properties.put("level", "1");
GetSocial.trackCustomEvent("level_completed", properties);
1
GetSocial.trackCustomEvent("level_completed", mapOf("level" to "1"))
1
2
NSDictionary* properties = @{@"level" : @"1"};
[GetSocial trackCustomEventWithName:@"level_completed" eventProperties:properties];
1
2
let properties = ["level" : "1"]
GetSocial.trackCustomEvent(name: "level_completed", eventProperties: properties)
1
2
var properties = new Dictionary<string, string> {{"level", "1"}};
GetSocial.TrackCustomEvent("level_completed", properties);
1
2
const properties = {'level': '1'};
GetSocial.trackCustomEvent('level_completed', properties);

Give us your feedback! Was this article helpful?

😀 🙁