analytics

package
v0.0.0-...-146d575 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2015 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package analytics provides access to the Google Analytics API.

See https://developers.google.com/analytics/

Usage example:

import "google.golang.org/api/analytics/v2.4"
...
analyticsService, err := analytics.New(oauthHttpClient)

Index

Constants

View Source
const (
	// View and manage your Google Analytics data
	AnalyticsScope = "https://www.googleapis.com/auth/analytics"

	// View your Google Analytics data
	AnalyticsReadonlyScope = "https://www.googleapis.com/auth/analytics.readonly"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataGetCall

type DataGetCall struct {
	// contains filtered or unexported fields
}

func (*DataGetCall) Dimensions

func (c *DataGetCall) Dimensions(dimensions string) *DataGetCall

Dimensions sets the optional parameter "dimensions": A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.

func (*DataGetCall) Do

func (c *DataGetCall) Do() error

func (*DataGetCall) Fields

func (c *DataGetCall) Fields(s ...googleapi.Field) *DataGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DataGetCall) Filters

func (c *DataGetCall) Filters(filters string) *DataGetCall

Filters sets the optional parameter "filters": A comma-separated list of dimension or metric filters to be applied to the report data.

func (*DataGetCall) MaxResults

func (c *DataGetCall) MaxResults(maxResults int64) *DataGetCall

MaxResults sets the optional parameter "max-results": The maximum number of entries to include in this feed.

func (*DataGetCall) Segment

func (c *DataGetCall) Segment(segment string) *DataGetCall

Segment sets the optional parameter "segment": An Analytics advanced segment to be applied to the report data.

func (*DataGetCall) Sort

func (c *DataGetCall) Sort(sort string) *DataGetCall

Sort sets the optional parameter "sort": A comma-separated list of dimensions or metrics that determine the sort order for the report data.

func (*DataGetCall) StartIndex

func (c *DataGetCall) StartIndex(startIndex int64) *DataGetCall

StartIndex sets the optional parameter "start-index": An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type DataService

type DataService struct {
	// contains filtered or unexported fields
}

func NewDataService

func NewDataService(s *Service) *DataService

func (*DataService) Get

func (r *DataService) Get(ids string, startDate string, endDate string, metrics string) *DataGetCall

Get: Returns Analytics report data for a view (profile).

type ManagementAccountsListCall

type ManagementAccountsListCall struct {
	// contains filtered or unexported fields
}

func (*ManagementAccountsListCall) Do

func (*ManagementAccountsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ManagementAccountsListCall) MaxResults

func (c *ManagementAccountsListCall) MaxResults(maxResults int64) *ManagementAccountsListCall

MaxResults sets the optional parameter "max-results": The maximum number of accounts to include in this response.

func (*ManagementAccountsListCall) StartIndex

func (c *ManagementAccountsListCall) StartIndex(startIndex int64) *ManagementAccountsListCall

StartIndex sets the optional parameter "start-index": An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementAccountsService

type ManagementAccountsService struct {
	// contains filtered or unexported fields
}

func NewManagementAccountsService

func NewManagementAccountsService(s *Service) *ManagementAccountsService

func (*ManagementAccountsService) List

List: Lists all accounts to which the user has access.

type ManagementGoalsListCall

type ManagementGoalsListCall struct {
	// contains filtered or unexported fields
}

func (*ManagementGoalsListCall) Do

func (*ManagementGoalsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ManagementGoalsListCall) MaxResults

func (c *ManagementGoalsListCall) MaxResults(maxResults int64) *ManagementGoalsListCall

MaxResults sets the optional parameter "max-results": The maximum number of goals to include in this response.

func (*ManagementGoalsListCall) StartIndex

func (c *ManagementGoalsListCall) StartIndex(startIndex int64) *ManagementGoalsListCall

StartIndex sets the optional parameter "start-index": An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementGoalsService

type ManagementGoalsService struct {
	// contains filtered or unexported fields
}

func NewManagementGoalsService

func NewManagementGoalsService(s *Service) *ManagementGoalsService

func (*ManagementGoalsService) List

func (r *ManagementGoalsService) List(accountId string, webPropertyId string, profileId string) *ManagementGoalsListCall

List: Lists goals to which the user has access.

type ManagementProfilesListCall

type ManagementProfilesListCall struct {
	// contains filtered or unexported fields
}

func (*ManagementProfilesListCall) Do

func (*ManagementProfilesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ManagementProfilesListCall) MaxResults

func (c *ManagementProfilesListCall) MaxResults(maxResults int64) *ManagementProfilesListCall

MaxResults sets the optional parameter "max-results": The maximum number of views (profiles) to include in this response.

func (*ManagementProfilesListCall) StartIndex

func (c *ManagementProfilesListCall) StartIndex(startIndex int64) *ManagementProfilesListCall

StartIndex sets the optional parameter "start-index": An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementProfilesService

type ManagementProfilesService struct {
	// contains filtered or unexported fields
}

func NewManagementProfilesService

func NewManagementProfilesService(s *Service) *ManagementProfilesService

func (*ManagementProfilesService) List

func (r *ManagementProfilesService) List(accountId string, webPropertyId string) *ManagementProfilesListCall

List: Lists views (profiles) to which the user has access.

type ManagementSegmentsListCall

type ManagementSegmentsListCall struct {
	// contains filtered or unexported fields
}

func (*ManagementSegmentsListCall) Do

func (*ManagementSegmentsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ManagementSegmentsListCall) MaxResults

func (c *ManagementSegmentsListCall) MaxResults(maxResults int64) *ManagementSegmentsListCall

MaxResults sets the optional parameter "max-results": The maximum number of advanced segments to include in this response.

func (*ManagementSegmentsListCall) StartIndex

func (c *ManagementSegmentsListCall) StartIndex(startIndex int64) *ManagementSegmentsListCall

StartIndex sets the optional parameter "start-index": An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementSegmentsService

type ManagementSegmentsService struct {
	// contains filtered or unexported fields
}

func NewManagementSegmentsService

func NewManagementSegmentsService(s *Service) *ManagementSegmentsService

func (*ManagementSegmentsService) List

List: Lists advanced segments to which the user has access.

type ManagementService

type ManagementService struct {
	Accounts *ManagementAccountsService

	Goals *ManagementGoalsService

	Profiles *ManagementProfilesService

	Segments *ManagementSegmentsService

	Webproperties *ManagementWebpropertiesService
	// contains filtered or unexported fields
}

func NewManagementService

func NewManagementService(s *Service) *ManagementService

type ManagementWebpropertiesListCall

type ManagementWebpropertiesListCall struct {
	// contains filtered or unexported fields
}

func (*ManagementWebpropertiesListCall) Do

func (*ManagementWebpropertiesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ManagementWebpropertiesListCall) MaxResults

MaxResults sets the optional parameter "max-results": The maximum number of web properties to include in this response.

func (*ManagementWebpropertiesListCall) StartIndex

StartIndex sets the optional parameter "start-index": An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementWebpropertiesService

type ManagementWebpropertiesService struct {
	// contains filtered or unexported fields
}

func NewManagementWebpropertiesService

func NewManagementWebpropertiesService(s *Service) *ManagementWebpropertiesService

func (*ManagementWebpropertiesService) List

List: Lists web properties to which the user has access.

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Data *DataService

	Management *ManagementService
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL