Versions in this module Expand all Collapse all v0 v0.37.1 Dec 15, 2020 Changes in this version + const AnalyticsReadonlyScope + const AnalyticsScope + type Activity struct + ActivityTime string + ActivityType string + Appview *ScreenviewData + Campaign string + ChannelGrouping string + CustomDimension []*CustomDimension + Ecommerce *EcommerceData + Event *EventData + ForceSendFields []string + Goals *GoalSetData + Hostname string + Keyword string + LandingPagePath string + Medium string + NullFields []string + Pageview *PageviewData + Source string + func (s *Activity) MarshalJSON() ([]byte, error) + type Cohort struct + DateRange *DateRange + ForceSendFields []string + Name string + NullFields []string + Type string + func (s *Cohort) MarshalJSON() ([]byte, error) + type CohortGroup struct + Cohorts []*Cohort + ForceSendFields []string + LifetimeValue bool + NullFields []string + func (s *CohortGroup) MarshalJSON() ([]byte, error) + type ColumnHeader struct + Dimensions []string + ForceSendFields []string + MetricHeader *MetricHeader + NullFields []string + func (s *ColumnHeader) MarshalJSON() ([]byte, error) + type CustomDimension struct + ForceSendFields []string + Index int64 + NullFields []string + Value string + func (s *CustomDimension) MarshalJSON() ([]byte, error) + type DateRange struct + EndDate string + ForceSendFields []string + NullFields []string + StartDate string + func (s *DateRange) MarshalJSON() ([]byte, error) + type DateRangeValues struct + ForceSendFields []string + NullFields []string + PivotValueRegions []*PivotValueRegion + Values []string + func (s *DateRangeValues) MarshalJSON() ([]byte, error) + type Dimension struct + ForceSendFields []string + HistogramBuckets googleapi.Int64s + Name string + NullFields []string + func (s *Dimension) MarshalJSON() ([]byte, error) + type DimensionFilter struct + CaseSensitive bool + DimensionName string + Expressions []string + ForceSendFields []string + Not bool + NullFields []string + Operator string + func (s *DimensionFilter) MarshalJSON() ([]byte, error) + type DimensionFilterClause struct + Filters []*DimensionFilter + ForceSendFields []string + NullFields []string + Operator string + func (s *DimensionFilterClause) MarshalJSON() ([]byte, error) + type DynamicSegment struct + ForceSendFields []string + Name string + NullFields []string + SessionSegment *SegmentDefinition + UserSegment *SegmentDefinition + func (s *DynamicSegment) MarshalJSON() ([]byte, error) + type EcommerceData struct + ActionType string + EcommerceType string + ForceSendFields []string + NullFields []string + Products []*ProductData + Transaction *TransactionData + func (s *EcommerceData) MarshalJSON() ([]byte, error) + type EventData struct + EventAction string + EventCategory string + EventCount int64 + EventLabel string + EventValue int64 + ForceSendFields []string + NullFields []string + func (s *EventData) MarshalJSON() ([]byte, error) + type GetReportsRequest struct + ForceSendFields []string + NullFields []string + ReportRequests []*ReportRequest + UseResourceQuotas bool + func (s *GetReportsRequest) MarshalJSON() ([]byte, error) + type GetReportsResponse struct + ForceSendFields []string + NullFields []string + QueryCost int64 + Reports []*Report + ResourceQuotasRemaining *ResourceQuotasRemaining + func (s *GetReportsResponse) MarshalJSON() ([]byte, error) + type GoalData struct + ForceSendFields []string + GoalCompletionLocation string + GoalCompletions int64 + GoalIndex int64 + GoalName string + GoalPreviousStep1 string + GoalPreviousStep2 string + GoalPreviousStep3 string + GoalValue float64 + NullFields []string + func (s *GoalData) MarshalJSON() ([]byte, error) + func (s *GoalData) UnmarshalJSON(data []byte) error + type GoalSetData struct + ForceSendFields []string + Goals []*GoalData + NullFields []string + func (s *GoalSetData) MarshalJSON() ([]byte, error) + type Metric struct + Alias string + Expression string + ForceSendFields []string + FormattingType string + NullFields []string + func (s *Metric) MarshalJSON() ([]byte, error) + type MetricFilter struct + ComparisonValue string + ForceSendFields []string + MetricName string + Not bool + NullFields []string + Operator string + func (s *MetricFilter) MarshalJSON() ([]byte, error) + type MetricFilterClause struct + Filters []*MetricFilter + ForceSendFields []string + NullFields []string + Operator string + func (s *MetricFilterClause) MarshalJSON() ([]byte, error) + type MetricHeader struct + ForceSendFields []string + MetricHeaderEntries []*MetricHeaderEntry + NullFields []string + PivotHeaders []*PivotHeader + func (s *MetricHeader) MarshalJSON() ([]byte, error) + type MetricHeaderEntry struct + ForceSendFields []string + Name string + NullFields []string + Type string + func (s *MetricHeaderEntry) MarshalJSON() ([]byte, error) + type OrFiltersForSegment struct + ForceSendFields []string + NullFields []string + SegmentFilterClauses []*SegmentFilterClause + func (s *OrFiltersForSegment) MarshalJSON() ([]byte, error) + type OrderBy struct + FieldName string + ForceSendFields []string + NullFields []string + OrderType string + SortOrder string + func (s *OrderBy) MarshalJSON() ([]byte, error) + type PageviewData struct + ForceSendFields []string + NullFields []string + PagePath string + PageTitle string + func (s *PageviewData) MarshalJSON() ([]byte, error) + type Pivot struct + DimensionFilterClauses []*DimensionFilterClause + Dimensions []*Dimension + ForceSendFields []string + MaxGroupCount int64 + Metrics []*Metric + NullFields []string + StartGroup int64 + func (s *Pivot) MarshalJSON() ([]byte, error) + type PivotHeader struct + ForceSendFields []string + NullFields []string + PivotHeaderEntries []*PivotHeaderEntry + TotalPivotGroupsCount int64 + func (s *PivotHeader) MarshalJSON() ([]byte, error) + type PivotHeaderEntry struct + DimensionNames []string + DimensionValues []string + ForceSendFields []string + Metric *MetricHeaderEntry + NullFields []string + func (s *PivotHeaderEntry) MarshalJSON() ([]byte, error) + type PivotValueRegion struct + ForceSendFields []string + NullFields []string + Values []string + func (s *PivotValueRegion) MarshalJSON() ([]byte, error) + type ProductData struct + ForceSendFields []string + ItemRevenue float64 + NullFields []string + ProductName string + ProductQuantity int64 + ProductSku string + func (s *ProductData) MarshalJSON() ([]byte, error) + func (s *ProductData) UnmarshalJSON(data []byte) error + type Report struct + ColumnHeader *ColumnHeader + Data *ReportData + ForceSendFields []string + NextPageToken string + NullFields []string + func (s *Report) MarshalJSON() ([]byte, error) + type ReportData struct + DataLastRefreshed string + ForceSendFields []string + IsDataGolden bool + Maximums []*DateRangeValues + Minimums []*DateRangeValues + NullFields []string + RowCount int64 + Rows []*ReportRow + SamplesReadCounts googleapi.Int64s + SamplingSpaceSizes googleapi.Int64s + Totals []*DateRangeValues + func (s *ReportData) MarshalJSON() ([]byte, error) + type ReportRequest struct + CohortGroup *CohortGroup + DateRanges []*DateRange + DimensionFilterClauses []*DimensionFilterClause + Dimensions []*Dimension + FiltersExpression string + ForceSendFields []string + HideTotals bool + HideValueRanges bool + IncludeEmptyRows bool + MetricFilterClauses []*MetricFilterClause + Metrics []*Metric + NullFields []string + OrderBys []*OrderBy + PageSize int64 + PageToken string + Pivots []*Pivot + SamplingLevel string + Segments []*Segment + ViewId string + func (s *ReportRequest) MarshalJSON() ([]byte, error) + type ReportRow struct + Dimensions []string + ForceSendFields []string + Metrics []*DateRangeValues + NullFields []string + func (s *ReportRow) MarshalJSON() ([]byte, error) + type ReportsBatchGetCall struct + func (c *ReportsBatchGetCall) Context(ctx context.Context) *ReportsBatchGetCall + func (c *ReportsBatchGetCall) Do(opts ...googleapi.CallOption) (*GetReportsResponse, error) + func (c *ReportsBatchGetCall) Fields(s ...googleapi.Field) *ReportsBatchGetCall + func (c *ReportsBatchGetCall) Header() http.Header + type ReportsService struct + func NewReportsService(s *Service) *ReportsService + func (r *ReportsService) BatchGet(getreportsrequest *GetReportsRequest) *ReportsBatchGetCall + type ResourceQuotasRemaining struct + DailyQuotaTokensRemaining int64 + ForceSendFields []string + HourlyQuotaTokensRemaining int64 + NullFields []string + func (s *ResourceQuotasRemaining) MarshalJSON() ([]byte, error) + type ScreenviewData struct + AppName string + ForceSendFields []string + MobileDeviceBranding string + MobileDeviceModel string + NullFields []string + ScreenName string + func (s *ScreenviewData) MarshalJSON() ([]byte, error) + type SearchUserActivityRequest struct + ActivityTypes []string + DateRange *DateRange + ForceSendFields []string + NullFields []string + PageSize int64 + PageToken string + User *User + ViewId string + func (s *SearchUserActivityRequest) MarshalJSON() ([]byte, error) + type SearchUserActivityResponse struct + ForceSendFields []string + NextPageToken string + NullFields []string + SampleRate float64 + Sessions []*UserActivitySession + TotalRows int64 + func (s *SearchUserActivityResponse) MarshalJSON() ([]byte, error) + func (s *SearchUserActivityResponse) UnmarshalJSON(data []byte) error + type Segment struct + DynamicSegment *DynamicSegment + ForceSendFields []string + NullFields []string + SegmentId string + func (s *Segment) MarshalJSON() ([]byte, error) + type SegmentDefinition struct + ForceSendFields []string + NullFields []string + SegmentFilters []*SegmentFilter + func (s *SegmentDefinition) MarshalJSON() ([]byte, error) + type SegmentDimensionFilter struct + CaseSensitive bool + DimensionName string + Expressions []string + ForceSendFields []string + MaxComparisonValue string + MinComparisonValue string + NullFields []string + Operator string + func (s *SegmentDimensionFilter) MarshalJSON() ([]byte, error) + type SegmentFilter struct + ForceSendFields []string + Not bool + NullFields []string + SequenceSegment *SequenceSegment + SimpleSegment *SimpleSegment + func (s *SegmentFilter) MarshalJSON() ([]byte, error) + type SegmentFilterClause struct + DimensionFilter *SegmentDimensionFilter + ForceSendFields []string + MetricFilter *SegmentMetricFilter + Not bool + NullFields []string + func (s *SegmentFilterClause) MarshalJSON() ([]byte, error) + type SegmentMetricFilter struct + ComparisonValue string + ForceSendFields []string + MaxComparisonValue string + MetricName string + NullFields []string + Operator string + Scope string + func (s *SegmentMetricFilter) MarshalJSON() ([]byte, error) + type SegmentSequenceStep struct + ForceSendFields []string + MatchType string + NullFields []string + OrFiltersForSegment []*OrFiltersForSegment + func (s *SegmentSequenceStep) MarshalJSON() ([]byte, error) + type SequenceSegment struct + FirstStepShouldMatchFirstHit bool + ForceSendFields []string + NullFields []string + SegmentSequenceSteps []*SegmentSequenceStep + func (s *SequenceSegment) MarshalJSON() ([]byte, error) + type Service struct + BasePath string + Reports *ReportsService + UserActivity *UserActivityService + UserAgent string + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type SimpleSegment struct + ForceSendFields []string + NullFields []string + OrFiltersForSegment []*OrFiltersForSegment + func (s *SimpleSegment) MarshalJSON() ([]byte, error) + type TransactionData struct + ForceSendFields []string + NullFields []string + TransactionId string + TransactionRevenue float64 + TransactionShipping float64 + TransactionTax float64 + func (s *TransactionData) MarshalJSON() ([]byte, error) + func (s *TransactionData) UnmarshalJSON(data []byte) error + type User struct + ForceSendFields []string + NullFields []string + Type string + UserId string + func (s *User) MarshalJSON() ([]byte, error) + type UserActivitySearchCall struct + func (c *UserActivitySearchCall) Context(ctx context.Context) *UserActivitySearchCall + func (c *UserActivitySearchCall) Do(opts ...googleapi.CallOption) (*SearchUserActivityResponse, error) + func (c *UserActivitySearchCall) Fields(s ...googleapi.Field) *UserActivitySearchCall + func (c *UserActivitySearchCall) Header() http.Header + func (c *UserActivitySearchCall) Pages(ctx context.Context, f func(*SearchUserActivityResponse) error) error + type UserActivityService struct + func NewUserActivityService(s *Service) *UserActivityService + func (r *UserActivityService) Search(searchuseractivityrequest *SearchUserActivityRequest) *UserActivitySearchCall + type UserActivitySession struct + Activities []*Activity + DataSource string + DeviceCategory string + ForceSendFields []string + NullFields []string + Platform string + SessionDate string + SessionId string + func (s *UserActivitySession) MarshalJSON() ([]byte, error)