class Analytics extends Service (View source)

Service definition for Analytics (v3).

Views and manages your Google Analytics data.

For more information about this service, see the API Documentation

Constants

ANALYTICS

View and manage your Google Analytics data.

ANALYTICS_EDIT

Edit Google Analytics management entities.

ANALYTICS_MANAGE_USERS

Manage Google Analytics Account users by email address.

ANALYTICS_MANAGE_USERS_READONLY

View Google Analytics user permissions.

ANALYTICS_PROVISION

Create a new Google Analytics account along with its default property and view.

ANALYTICS_READONLY

View your Google Analytics data.

ANALYTICS_USER_DELETION

Manage Google Analytics user deletion requests.

Properties

$data_ga
$data_mcf
$data_realtime
$management_accountSummaries
$management_accountUserLinks
$management_accounts
$management_clientId
$management_customDataSources
$management_customDimensions
$management_customMetrics
$management_experiments
$management_filters
$management_goals
$management_profileFilterLinks
$management_profileUserLinks
$management_profiles
$management_remarketingAudience
$management_segments
$management_unsampledReports
$management_uploads
$management_webPropertyAdWordsLinks
$management_webproperties
$management_webpropertyUserLinks
$metadata_columns
$provisioning
$userDeletion_userDeletionRequest
$rootUrlTemplate

Methods

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the Analytics service.

Details

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the Analytics service.

Parameters

Client|array $clientOrConfig

The client used to deliver requests, or a config array to pass to a new Client instance.

string $rootUrl

The root URL used for requests to the service.