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.Management.Goals.Insert

Contents

Description

Create a new goal.

See: Google Analytics API Reference for analytics.management.goals.insert.

Synopsis

REST Resource

type ManagementGoalsInsertResource = "analytics" :> ("v3" :> ("management" :> ("accounts" :> (Capture "accountId" Text :> ("webproperties" :> (Capture "webPropertyId" Text :> ("profiles" :> (Capture "profileId" Text :> ("goals" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Goal :> Post `[JSON]` Goal))))))))))) Source

A resource alias for analytics.management.goals.insert method which the ManagementGoalsInsert request conforms to.

Creating a Request

managementGoalsInsert Source

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

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

Request Lenses

mgiWebPropertyId :: Lens' ManagementGoalsInsert Text Source

Web property ID to create the goal for.

mgiProFileId :: Lens' ManagementGoalsInsert Text Source

View (Profile) ID to create the goal for.

mgiPayload :: Lens' ManagementGoalsInsert Goal Source

Multipart request metadata.

mgiAccountId :: Lens' ManagementGoalsInsert Text Source

Account ID to create the goal for.