Event Tracking

Custom events tracking

How to track custom events

You can track custom events using the Noctua.Event.TrackCustomEvent() function.

Example

Noctua.Event.TrackCustomEvent("my_event", new Dictionary<string, object>() {
    { "key", "value" }
});

Parameters

  • eventName: The name of the event to track.
  • parameters: A dictionary of parameters to track with the event.

Note

eventMap is used in eventName to generalize the event name for all 3rd party services. So we just need to implement it once.

Dynamic Event Tracking

You can use a dictionary of parameters for Dynamic Event Tracking, with suffix as the key for the dynamic parameter. However, Dynamic Event Tracking is not supported for Adjust. The event will only be sent to Facebook and Firebase if they are enabled.

Suppose you want to track a custom event called level, where the level value can range from 1 to 99. Using the code below, the event will be tracked as level_99.

Noctua.Event.TrackCustomEvent("level", new Dictionary<string, object>() {
    { "suffix", "99" }
});
Previous
Implementing event tracking