analytics.AnalyticsEvent class

Interface representing a Firebase Analytics event that was logged for a specific user.

Signature:

exportdeclareclassAnalyticsEvent

Constructors

ConstructorModifiersDescription
(constructor)(wireFormat)Constructs a new instance of the AnalyticsEvent class

Properties

PropertyModifiersTypeDescription
logTimestringUTC client time when the event happened.
namestringThe name of the event.
params{ [key: string]: any; }A map of parameters and their values associated with the event.Note: Values in this map are cast to the most appropriate type. Due to the nature of JavaScript's number handling, this might entail a loss of precision in cases of very large integers.
previousLogTimestringUTC client time when the previous event happened.
reportingDatestringThe date on which the event.was logged. (YYYYMMDD format in the registered timezone of your app).
userUserDimensionsUser-related dimensions.
valueInUSDnumberValue parameter in USD.

analytics.AnalyticsEvent.(constructor)

Constructs a new instance of the AnalyticsEvent class

Signature:

constructor(wireFormat:any);

Parameters

ParameterTypeDescription
wireFormatany

analytics.AnalyticsEvent.logTime

UTC client time when the event happened.

Signature:

logTime:string;

analytics.AnalyticsEvent.name

The name of the event.

Signature:

name:string;

analytics.AnalyticsEvent.params

A map of parameters and their values associated with the event.

Signature:

params:{[key:string]:any;};

analytics.AnalyticsEvent.previousLogTime

UTC client time when the previous event happened.

Signature:

previousLogTime?:string;

analytics.AnalyticsEvent.reportingDate

The date on which the event.was logged. (YYYYMMDD format in the registered timezone of your app).

Signature:

reportingDate:string;

analytics.AnalyticsEvent.user

User-related dimensions.

Signature:

user?:UserDimensions;

analytics.AnalyticsEvent.valueInUSD

Value parameter in USD.

Signature:

valueInUSD?:number;