Google Analytics

Views (Profiles)

The Profiles collection is a set of Profile resources, each of which describes the profile of an authenticated user. 

For a list of methods for this resource, see the end of this page.

Resource representations

JSON template for an Analytics view (profile).

{
  "id": string,
  "kind": "analytics#profile",
  "selfLink": string,
  "accountId": string,
  "webPropertyId": string,
  "internalWebPropertyId": string,
  "name": string,
  "currency": string,
  "timezone": string,
  "websiteUrl": string,
  "defaultPage": string,
  "excludeQueryParameters": string,
  "siteSearchQueryParameters": string,
  "siteSearchCategoryParameters": string,
  "type": string,
  "permissions": {
    "effective": [
      string
    ]
  },
  "created": datetime,
  "updated": datetime,
  "eCommerceTracking": boolean,
  "parentLink": {
    "type": "analytics#webproperty",
    "href": string
  },
  "childLink": {
    "type": "analytics#goals",
    "href": string
  }
}
Property name Value Description Notes
accountId string Account ID to which this view (profile) belongs.
childLink.href string Link to the list of goals for this view (profile).
childLink.type string Value is "analytics#goals".
created datetime Time this view (profile) was created.
currency string The currency type associated with this view (profile). The supported values are:

ARS, AUD, BGN, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, INR, JPY, KRW, LTL, MXN, NOK, NZD, PHP, PLN, RUB, SEK, THB, TRY, TWD, USD, VND, ZAR

defaultPage string Default page for this view (profile).
eCommerceTracking boolean Indicates whether ecommerce tracking is enabled for this view (profile).
excludeQueryParameters string The query parameters that are excluded from this view (profile).
id string View (Profile) ID.
internalWebPropertyId string Internal ID for the web property to which this view (profile) belongs.
kind string Resource type for Analytics view (profile).
name string Name of this view (profile).
parentLink.href string Link to the web property to which this view (profile) belongs.
parentLink.type string Value is "analytics#webproperty".
permissions object Permissions the user has for this view (profile).
permissions.effective[] list All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.
siteSearchCategoryParameters string Site search category parameters for this view (profile).
siteSearchQueryParameters string The site search query parameters for this view (profile).
timezone string Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
type string View (Profile) type. Supported types: WEB or APP.

Acceptable values are:
  • "APP":
  • "WEB":
updated datetime Time this view (profile) was last modified.
webPropertyId string Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
websiteUrl string Website URL for this view (profile).

Methods

delete
Deletes a view (profile).
get
Gets a view (profile) to which the user has access.
insert
Create a new view (profile).
list
Lists views (profiles) to which the user has access.
patch
Updates an existing view (profile). This method supports patch semantics.
update
Updates an existing view (profile).

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.