Show / Hide Table of Contents

Class Activity

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.

Inheritance
object
Activity
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.AnalyticsReporting.v4.Data
Assembly: Google.Apis.AnalyticsReporting.v4.dll
Syntax
public class Activity : IDirectResponseSchema

Properties

ActivityTime

object representation of ActivityTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use ActivityTimeDateTimeOffset instead.")]
public virtual object ActivityTime { get; set; }
Property Value
Type Description
object

ActivityTimeDateTimeOffset

DateTimeOffset representation of ActivityTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? ActivityTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

ActivityTimeRaw

Timestamp of the activity. If activities for a visit cross midnight and occur in two separate dates, then two sessions (one per date) share the session identifier. For example, say session ID 113472 has activity within 2019-08-20, and session ID 243742 has activity within 2019-08-25 and 2019-08-26. Session ID 113472 is one session, and session ID 243742 is two sessions.

Declaration
[JsonProperty("activityTime")]
public virtual string ActivityTimeRaw { get; set; }
Property Value
Type Description
string

ActivityType

Type of this activity.

Declaration
[JsonProperty("activityType")]
public virtual string ActivityType { get; set; }
Property Value
Type Description
string

Appview

This will be set if activity_type equals SCREEN_VIEW.

Declaration
[JsonProperty("appview")]
public virtual ScreenviewData Appview { get; set; }
Property Value
Type Description
ScreenviewData

Campaign

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).

Declaration
[JsonProperty("campaign")]
public virtual string Campaign { get; set; }
Property Value
Type Description
string

ChannelGrouping

The Channel Group associated with an end user's session for this View (defined by the View's Channel Groupings).

Declaration
[JsonProperty("channelGrouping")]
public virtual string ChannelGrouping { get; set; }
Property Value
Type Description
string

CustomDimension

A list of all custom dimensions associated with this activity.

Declaration
[JsonProperty("customDimension")]
public virtual IList<CustomDimension> CustomDimension { get; set; }
Property Value
Type Description
IList<CustomDimension>

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

Ecommerce

This will be set if activity_type equals ECOMMERCE.

Declaration
[JsonProperty("ecommerce")]
public virtual EcommerceData Ecommerce { get; set; }
Property Value
Type Description
EcommerceData

Event__

This field contains all the details pertaining to an event and will be set if activity_type equals EVENT.

Declaration
[JsonProperty("event")]
public virtual EventData Event__ { get; set; }
Property Value
Type Description
EventData

Goals

This field contains a list of all the goals that were reached in this activity when activity_type equals GOAL.

Declaration
[JsonProperty("goals")]
public virtual GoalSetData Goals { get; set; }
Property Value
Type Description
GoalSetData

Hostname

The hostname from which the tracking request was made.

Declaration
[JsonProperty("hostname")]
public virtual string Hostname { get; set; }
Property Value
Type Description
string

Keyword

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).

Declaration
[JsonProperty("keyword")]
public virtual string Keyword { get; set; }
Property Value
Type Description
string

LandingPagePath

The first page in users' sessions, or the landing page.

Declaration
[JsonProperty("landingPagePath")]
public virtual string LandingPagePath { get; set; }
Property Value
Type Description
string

Medium

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).

Declaration
[JsonProperty("medium")]
public virtual string Medium { get; set; }
Property Value
Type Description
string

Pageview

This will be set if activity_type equals PAGEVIEW. This field contains all the details about the visitor and the page that was visited.

Declaration
[JsonProperty("pageview")]
public virtual PageviewData Pageview { get; set; }
Property Value
Type Description
PageviewData

Source

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).

Declaration
[JsonProperty("source")]
public virtual string Source { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX