GoogleAnalyticsService class
Properties
-
currentScreen
↔ String
-
The current screen.
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
isDebugEnabled
↔ bool
-
The state of debug messages (if additional logging is on or not).
getter/setter pair
-
isEnabled
↔ bool
-
The state of the service (if it reports to Analytics or not).
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getOrCreateStackTrace(StackTrace? stackTrace, [int levelsToRemove = 2])
→ String
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
setUserId(String id)
→ void
-
Google Analytics has a setUserID call, which allows you to store a user ID for the individual using your app.
This call is optional, and is generally used by organizations that want to use Analytics in conjunction with BigQuery to associate analytics data for the same user across multiple apps, multiple devices, or multiple analytics providers.
See https://firebase.google.com/docs/analytics/userid
override
-
setUserProperty(String key, String value)
→ void
-
User properties are attributes you define to describe segments of your user base, such as language preference or geographic location.
These can be used to define audiences for your app.
See https://firebase.google.com/docs/analytics/user-properties?platform=android
override
-
toString()
→ String
-
A string representation of this object.
inherited
-
track(String name, [Map<String, Object>? params])
→ Future<void>
-
Track an event using a
name
and optional params
.
-
trackAction(String name, String action)
→ void
-
Track an action event with
name
and action
.
-
trackActionAndNumberValue(String name, String action, Object numberValue)
→ void
-
Track an action-and-value event with
name
and action
and numberValue
.
-
trackActionAndTextValue(String name, String action, Object textValue)
→ void
-
Track an action-and-value event with
name
and action
and textValue
.
-
trackActionAndValue(String name, String action, Object value)
→ void
-
Track an action-and-value event with
name
and action
and value
.
-
trackError(String message, [Map<String, Object>? params])
→ Future<void>
-
Track an error using an error
message
and optional params
.
-
trackErrorWithException(String source, dynamic e, [StackTrace? stackTrace])
→ Future<void>
-
Track an error specifying its
source
, with exception e
and optional stackTrace
.
-
trackNumberValue(String name, Object numberValue)
→ void
-
Track a value event with
name
and numberValue
.
-
trackTextValue(String name, Object textValue)
→ void
-
Track a value event with
name
and textValue
.
-
trackValue(String name, Object value)
→ void
-
Track a value event with
name
and value
.
-
trackWarning(String message, [Map<String, Object>? params])
→ Future<void>
-
Track a warning using a warning
message
and optional params
.
-
trackWarningWithException(String source, dynamic e, [StackTrace? stackTrace])
→ Future<void>
-
Track a warning specifying its
source
, with exception e
and optional stackTrace
.