Activity class

An Activity represents data for an activity of a user.

Note that an Activity is different from a hit. A hit might result in multiple Activity's. For example, if a hit includes a transaction and a goal completion, there will be two Activity protos for this hit, one for ECOMMERCE and one for GOAL. Conversely, multiple hits can also construct one Activity. In classic e-commerce, data for one transaction might be sent through multiple hits. These hits will be merged into one ECOMMERCE Activity.

Constructors

Activity({String? activityTime, String? activityType, ScreenviewData? appview, String? campaign, String? channelGrouping, List<CustomDimension>? customDimension, EcommerceData? ecommerce, EventData? event, GoalSetData? goals, String? hostname, String? keyword, String? landingPagePath, String? medium, PageviewData? pageview, String? source})
Activity.fromJson(Map json_)

Properties

activityTime String?
Timestamp of the activity.
getter/setter pair
activityType String?
Type of this activity. Possible string values are:
getter/setter pair
appview ScreenviewData?
This will be set if activity_type equals SCREEN_VIEW.
getter/setter pair
campaign String?
For manual campaign tracking, it is the value of the utm_campaign campaign tracking parameter.
getter/setter pair
channelGrouping String?
The Channel Group associated with an end user's session for this View (defined by the View's Channel Groupings).
getter/setter pair
customDimension List<CustomDimension>?
A list of all custom dimensions associated with this activity.
getter/setter pair
ecommerce EcommerceData?
This will be set if activity_type equals ECOMMERCE.
getter/setter pair
event EventData?
This field contains all the details pertaining to an event and will be set if activity_type equals EVENT.
getter/setter pair
goals GoalSetData?
This field contains a list of all the goals that were reached in this activity when activity_type equals GOAL.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hostname String?
The hostname from which the tracking request was made.
getter/setter pair
keyword String?
For manual campaign tracking, it is the value of the utm_term campaign tracking parameter.
getter/setter pair
landingPagePath String?
The first page in users' sessions, or the landing page.
getter/setter pair
medium String?
The type of referrals.
getter/setter pair
pageview PageviewData?
This will be set if activity_type equals PAGEVIEW.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String?
The source of referrals.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited