public final class Activity extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Analytics Reporting API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Activity() |
| Modifier and Type | Method and Description |
|---|---|
Activity |
clone() |
String |
getActivityTime()
Timestamp of the activity.
|
String |
getActivityType()
Type of this activity.
|
ScreenviewData |
getAppview()
This will be set if `activity_type` equals `SCREEN_VIEW`.
|
String |
getCampaign()
For manual campaign tracking, it is the value of the utm_campaign campaign tracking parameter.
|
String |
getChannelGrouping()
The Channel Group associated with an end user's session for this View (defined by the View's
Channel Groupings).
|
List<CustomDimension> |
getCustomDimension()
A list of all custom dimensions associated with this activity.
|
EcommerceData |
getEcommerce()
This will be set if `activity_type` equals `ECOMMERCE`.
|
EventData |
getEvent()
This field contains all the details pertaining to an event and will be set if `activity_type`
equals `EVENT`.
|
GoalSetData |
getGoals()
This field contains a list of all the goals that were reached in this activity when
`activity_type` equals `GOAL`.
|
String |
getHostname()
The hostname from which the tracking request was made.
|
String |
getKeyword()
For manual campaign tracking, it is the value of the utm_term campaign tracking parameter.
|
String |
getLandingPagePath()
The first page in users' sessions, or the landing page.
|
String |
getMedium()
The type of referrals.
|
PageviewData |
getPageview()
This will be set if `activity_type` equals `PAGEVIEW`.
|
String |
getSource()
The source of referrals.
|
Activity |
set(String fieldName,
Object value) |
Activity |
setActivityTime(String activityTime)
Timestamp of the activity.
|
Activity |
setActivityType(String activityType)
Type of this activity.
|
Activity |
setAppview(ScreenviewData appview)
This will be set if `activity_type` equals `SCREEN_VIEW`.
|
Activity |
setCampaign(String campaign)
For manual campaign tracking, it is the value of the utm_campaign campaign tracking parameter.
|
Activity |
setChannelGrouping(String channelGrouping)
The Channel Group associated with an end user's session for this View (defined by the View's
Channel Groupings).
|
Activity |
setCustomDimension(List<CustomDimension> customDimension)
A list of all custom dimensions associated with this activity.
|
Activity |
setEcommerce(EcommerceData ecommerce)
This will be set if `activity_type` equals `ECOMMERCE`.
|
Activity |
setEvent(EventData event)
This field contains all the details pertaining to an event and will be set if `activity_type`
equals `EVENT`.
|
Activity |
setGoals(GoalSetData goals)
This field contains a list of all the goals that were reached in this activity when
`activity_type` equals `GOAL`.
|
Activity |
setHostname(String hostname)
The hostname from which the tracking request was made.
|
Activity |
setKeyword(String keyword)
For manual campaign tracking, it is the value of the utm_term campaign tracking parameter.
|
Activity |
setLandingPagePath(String landingPagePath)
The first page in users' sessions, or the landing page.
|
Activity |
setMedium(String medium)
The type of referrals.
|
Activity |
setPageview(PageviewData pageview)
This will be set if `activity_type` equals `PAGEVIEW`.
|
Activity |
setSource(String source)
The source of referrals.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getActivityTime()
null for nonepublic Activity setActivityTime(String activityTime)
activityTime - activityTime or null for nonepublic String getActivityType()
null for nonepublic Activity setActivityType(String activityType)
activityType - activityType or null for nonepublic ScreenviewData getAppview()
null for nonepublic Activity setAppview(ScreenviewData appview)
appview - appview or null for nonepublic String getCampaign()
null for nonepublic Activity setCampaign(String campaign)
campaign - campaign or null for nonepublic String getChannelGrouping()
null for nonepublic Activity setChannelGrouping(String channelGrouping)
channelGrouping - channelGrouping or null for nonepublic List<CustomDimension> getCustomDimension()
null for nonepublic Activity setCustomDimension(List<CustomDimension> customDimension)
customDimension - customDimension or null for nonepublic EcommerceData getEcommerce()
null for nonepublic Activity setEcommerce(EcommerceData ecommerce)
ecommerce - ecommerce or null for nonepublic EventData getEvent()
null for nonepublic Activity setEvent(EventData event)
event - event or null for nonepublic GoalSetData getGoals()
null for nonepublic Activity setGoals(GoalSetData goals)
goals - goals or null for nonepublic String getHostname()
null for nonepublic Activity setHostname(String hostname)
hostname - hostname or null for nonepublic String getKeyword()
null for nonepublic Activity setKeyword(String keyword)
keyword - keyword or null for nonepublic String getLandingPagePath()
null for nonepublic Activity setLandingPagePath(String landingPagePath)
landingPagePath - landingPagePath or null for nonepublic String getMedium()
null for nonepublic Activity setMedium(String medium)
medium - medium or null for nonepublic PageviewData getPageview()
null for nonepublic Activity setPageview(PageviewData pageview)
pageview - pageview or null for nonepublic String getSource()
null for nonepublic Activity setSource(String source)
source - source or null for nonepublic Activity set(String fieldName, Object value)
set in class GenericJsonpublic Activity clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.