Skip to main content

IAnalyticsEvent

An interface in Alta.Analytics.Runtime, Alta.Analytics.

An analytics event: a name, an optional user id and its properties, plus instruments that add extra data. Sent through IAnalyticsService.Send.

Properties​

MemberWhat it is
IReadonlyAnalyticsData Data { get; }The event's properties so far, read-only.
string EventName { get; }Name of the event, such as "Micro Tutorial Enter".
int? UserId { get; }Id of the player the event is about, or null.

Methods​

MemberWhat it is
void AddInstrument(IAnalyticsInstrument instrument)Adds an instrument that writes extra properties into the event. It runs straight away if a resolver is set, otherwise when the event is sent.

Used in​

Members of other types that take, return or hold a IAnalyticsEvent: