Google Analytics

Web Properties

The Webproperties collection is a set of Webproperty resources, each of which describes a web property available to an authenticated user. 

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

Resource representations

JSON template for an Analytics web property.

{
  "id": string,
  "kind": "analytics#webproperty",
  "selfLink": string,
  "accountId": string,
  "internalWebPropertyId": string,
  "name": string,
  "websiteUrl": string,
  "level": string,
  "profileCount": integer,
  "industryVertical": string,
  "defaultProfileId": long,
  "permissions": {
    "effective": [
      string
    ]
  },
  "created": datetime,
  "updated": datetime,
  "parentLink": {
    "type": "analytics#account",
    "href": string
  },
  "childLink": {
    "type": "analytics#profiles",
    "href": string
  }
}
Property name Value Description Notes
accountId string Account ID to which this web property belongs.
childLink.href string Link to the list of views (profiles) for this web property.
childLink.type string Type of the parent link. Its value is "analytics#profiles".
created datetime Time this web property was created.
defaultProfileId long Default view (profile) ID.
id string Web property ID of the form UA-XXXXX-YY.
industryVertical string


Acceptable values are:
  • "ARTS_AND_ENTERTAINMENT":
  • "AUTOMOTIVE":
  • "BEAUTY_AND_FITNESS":
  • "BOOKS_AND_LITERATURE":
  • "BUSINESS_AND_INDUSTRIAL_MARKETS":
  • "COMPUTERS_AND_ELECTRONICS":
  • "FINANCE":
  • "FOOD_AND_DRINK":
  • "GAMES":
  • "HEALTHCARE":
  • "HOBBIES_AND_LEISURE":
  • "HOME_AND_GARDEN":
  • "INTERNET_AND_TELECOM":
  • "JOBS_AND_EDUCATION":
  • "LAW_AND_GOVERNMENT":
  • "NEWS":
  • "ONLINE_COMMUNITIES":
  • "OTHER":
  • "PEOPLE_AND_SOCIETY":
  • "PETS_AND_ANIMALS":
  • "REAL_ESTATE":
  • "REFERENCE":
  • "SCIENCE":
  • "SHOPPING":
  • "SPORTS":
  • "TRAVEL":
  • "UNSPECIFIED":
internalWebPropertyId string Internal ID for this web property.
kind string Resource type for Analytics WebProperty.
level string Level for this web property.

Acceptable values are:
  • "PREMIUM":
  • "STANDARD":
name string Name of this web property.
parentLink.href string Link to the account for this web property.
parentLink.type string Type of the parent link. Its value is "analytics#account".
permissions object Permissions the user has for this web property.
permissions.effective[] list All the permissions that the user has for this web property. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent account.
profileCount integer View (Profile) count for this web property.
updated datetime Time this web property was last modified.
websiteUrl string Website url for this web property.

Methods

get
Gets a web property to which the user has access.
insert
Create a new property if the account has fewer than 20 properties. Web properties are visible in the Google Analytics interface only if they have at least one profile.
list
Lists web properties to which the user has access.
patch
Updates an existing web property. This method supports patch semantics.
update
Updates an existing web property.

Authentication required

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

Signing you in...

Google Developers needs your permission to do that.