AnalyticsMetric class
AnalyticsMetric
- Implemented types
Constructors
- AnalyticsMetric({String? value, String? date, required int visitors, required int sessions, int? pageviews, required int events, int? users, int? visits, double? bounceRate, double? visitDuration, double? viewsPerVisit, double? scrollDepth, double? engagementTime})
-
AnalyticsMetric.fromMap(Map<
String, dynamic> map) -
factory
Properties
- bounceRate → double?
-
Share of bounced visits, as a percentage; a visit is a bounce unless it records two or more page or screen views, at least one interaction, or ten seconds or more of activity. An interaction is any event that is neither a view nor automatic measurement such as "app_foregrounded", "engagement_time" or "scroll_depth". Only the flat aggregate computes it; null on breakdown and time-series rows.
final
- date → String?
-
Start of the time bucket this row covers, in ISO 8601. Null when no interval was requested.
final
- engagementTime → double?
-
Average engaged time per session in seconds, counting only foreground time. Sessions that reported no engagement are excluded. Only the flat aggregate computes it; null on breakdown and time-series rows.
final
- events → int
-
Total events in the requested range.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pageviews → int?
-
Total page and screen view events (events named "pageview" or "screen_view") in the requested range. The flat aggregate and the time series compute it; null on breakdown rows.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollDepth → double?
-
Average scroll depth across events, as a percentage. Only the flat aggregate computes it; null on breakdown and time-series rows.
final
- sessions → int
-
Unique sessions in the requested range.
final
- users → int?
-
Unique identified users in the requested range. Anonymous events are not counted. Null on entry and exit page breakdown rows.
final
- value → String?
-
Dimension value this row covers. Null when no dimension was requested, empty when the dimension could not be derived for those events.
final
- viewsPerVisit → double?
-
Average pageviews per session (pageviews divided by visits). Only the flat aggregate computes it; null on breakdown and time-series rows.
final
- visitDuration → double?
-
Average session length in seconds, measured first event to last event. Single-event sessions count as 0. Only the flat aggregate computes it; null on breakdown and time-series rows.
final
- visitors → int
-
Unique visitors in the requested range.
final
- visits → int?
-
Total sessions with activity in the requested range. Only the flat aggregate computes it; null on breakdown and time-series rows.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited