gogol-analytics-0.0.1: Google Analytics SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Analytics.Data.Ga.Get

Contents

Description

Returns Analytics data for a view (profile).

See: Google Analytics API Reference for analytics.data.ga.get.

Synopsis

REST Resource

type DataGaGetResource = "analytics" :> ("v3" :> ("data" :> ("ga" :> (QueryParam "ids" Text :> (QueryParam "start-date" Text :> (QueryParam "end-date" Text :> (QueryParam "metrics" Text :> (QueryParam "samplingLevel" DataGaGetSamplingLevel :> (QueryParam "filters" Text :> (QueryParam "output" DataGaGetOutput :> (QueryParam "sort" Text :> (QueryParam "dimensions" Text :> (QueryParam "start-index" (Textual Int32) :> (QueryParam "max-results" (Textual Int32) :> (QueryParam "segment" Text :> (QueryParam "alt" AltJSON :> Get `[JSON]` GaData)))))))))))))))) Source

A resource alias for analytics.data.ga.get method which the DataGaGet request conforms to.

Creating a Request

dataGaGet Source

Creates a value of DataGaGet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data DataGaGet Source

Returns Analytics data for a view (profile).

See: dataGaGet smart constructor.

Request Lenses

dggMetrics :: Lens' DataGaGet Text Source

A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric must be specified.

dggFilters :: Lens' DataGaGet (Maybe Text) Source

A comma-separated list of dimension or metric filters to be applied to Analytics data.

dggIds :: Lens' DataGaGet Text Source

Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.

dggEndDate :: Lens' DataGaGet Text Source

End date for fetching Analytics data. Request can should specify an end date formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is yesterday.

dggOutput :: Lens' DataGaGet (Maybe DataGaGetOutput) Source

The selected format for the response. Default format is JSON.

dggSort :: Lens' DataGaGet (Maybe Text) Source

A comma-separated list of dimensions or metrics that determine the sort order for Analytics data.

dggDimensions :: Lens' DataGaGet (Maybe Text) Source

A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.

dggStartIndex :: Lens' DataGaGet (Maybe Int32) Source

An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

dggMaxResults :: Lens' DataGaGet (Maybe Int32) Source

The maximum number of entries to include in this feed.

dggSegment :: Lens' DataGaGet (Maybe Text) Source

An Analytics segment to be applied to data.

dggStartDate :: Lens' DataGaGet Text Source

Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo.