Record Custom Events

Custom Events must have a schema defined in Event Manager or they'll be classed as invalid. You can record Custom Events at any time once the SDK has been activated (see Initial Setup), and they are batched for upload. Batches are uploaded automatically every 60 seconds.

The following code is an example of how to send a Custom Event:

Dictionary<string, object> parameters = new Dictionary<string, object>()
{
    { "fabulousString", "hello there" },
    { "sparklingInt", 1337 },
    { "spectacularFloat", 0.451f },
    { "peculiarBool", true },
};

AnalyticsService.Instance.CustomData("myEvent", parameters);

Note that Custom Event parameter values must be one of the following primitive types: string, int, long, float, double or bool.