google_api_analytics_reporting v0.2.0 GoogleApi.AnalyticsReporting.V4.Model.Activity View Source
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.
Attributes
- activityTime (DateTime.t): Timestamp of the activity. Defaults to:
null
. activityType (String.t): Type of this activity. Defaults to:
null
.- Enum - one of [ACTIVITY_TYPE_UNSPECIFIED, PAGEVIEW, SCREENVIEW, GOAL, ECOMMERCE, EVENT]
- appview (ScreenviewData): This will be set if `activity_type` equals `SCREEN_VIEW`. Defaults to:
null
. - campaign (String.t): For manual campaign tracking, it is the value of the utm_campaign campaign tracking parameter. For AdWords autotagging, it is the name(s) of the online ad campaign(s) you use for the property. If you use neither, its value is (not set). Defaults to:
null
. - channelGrouping (String.t): The Channel Group associated with an end user's session for this View (defined by the View's Channel Groupings). Defaults to:
null
. - customDimension ([CustomDimension]): A list of all custom dimensions associated with this activity. Defaults to:
null
. - ecommerce (EcommerceData): This will be set if `activity_type` equals `ECOMMERCE`. Defaults to:
null
. - event (EventData): This field contains all the details pertaining to an event and will be set if `activity_type` equals `EVENT`. Defaults to:
null
. - goals (GoalSetData): This field contains a list of all the goals that were reached in this activity when `activity_type` equals `GOAL`. Defaults to:
null
. - hostname (String.t): The hostname from which the tracking request was made. Defaults to:
null
. - keyword (String.t): For manual campaign tracking, it is the value of the utm_term campaign tracking parameter. For AdWords traffic, it contains the best matching targeting criteria. For the display network, where multiple targeting criteria could have caused the ad to show up, it returns the best matching targeting criteria as selected by Ads. This could be display_keyword, site placement, boomuserlist, user_interest, age, or gender. Otherwise its value is (not set). Defaults to:
null
. - landingPagePath (String.t): The first page in users' sessions, or the landing page. Defaults to:
null
. - medium (String.t): The type of referrals. For manual campaign tracking, it is the value of the utm_medium campaign tracking parameter. For AdWords autotagging, it is cpc. If users came from a search engine detected by Google Analytics, it is organic. If the referrer is not a search engine, it is referral. If users came directly to the property and document.referrer is empty, its value is (none). Defaults to:
null
. - pageview (PageviewData): This will be set if `activity_type` equals `PAGEVIEW`. This field contains all the details about the visitor and the page that was visited. Defaults to:
null
. - source (String.t): The source of referrals. For manual campaign tracking, it is the value of the utm_source campaign tracking parameter. For AdWords autotagging, it is google. If you use neither, it is the domain of the source (e.g., document.referrer) referring the users. It may also contain a port address. If users arrived without a referrer, its value is (direct). Defaults to:
null
.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %GoogleApi.AnalyticsReporting.V4.Model.Activity{
activityTime: DateTime.t(),
activityType: any(),
appview: GoogleApi.AnalyticsReporting.V4.Model.ScreenviewData.t(),
campaign: any(),
channelGrouping: any(),
customDimension: [GoogleApi.AnalyticsReporting.V4.Model.CustomDimension.t()],
ecommerce: GoogleApi.AnalyticsReporting.V4.Model.EcommerceData.t(),
event: GoogleApi.AnalyticsReporting.V4.Model.EventData.t(),
goals: GoogleApi.AnalyticsReporting.V4.Model.GoalSetData.t(),
hostname: any(),
keyword: any(),
landingPagePath: any(),
medium: any(),
pageview: GoogleApi.AnalyticsReporting.V4.Model.PageviewData.t(),
source: any()
}
t() :: %GoogleApi.AnalyticsReporting.V4.Model.Activity{ activityTime: DateTime.t(), activityType: any(), appview: GoogleApi.AnalyticsReporting.V4.Model.ScreenviewData.t(), campaign: any(), channelGrouping: any(), customDimension: [GoogleApi.AnalyticsReporting.V4.Model.CustomDimension.t()], ecommerce: GoogleApi.AnalyticsReporting.V4.Model.EcommerceData.t(), event: GoogleApi.AnalyticsReporting.V4.Model.EventData.t(), goals: GoogleApi.AnalyticsReporting.V4.Model.GoalSetData.t(), hostname: any(), keyword: any(), landingPagePath: any(), medium: any(), pageview: GoogleApi.AnalyticsReporting.V4.Model.PageviewData.t(), source: any() }
Link to this section Functions
Link to this function
decode(value, options) View Source
Unwrap a decoded JSON object into its complex fields.