analytics.management.webproperties.insert
POST {{baseUrl}}/management/accounts/:accountId/webproperties?alt=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>"aUser=<string>&userIp=<string>
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.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
alt | string | Data format for the response. | |
fields | string | Selector specifying which fields to include in a partial response. | |
key | string | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. | |
oauth_token | string | OAuth 2.0 token for the current user. | |
prettyPrint | string | Returns response with indentations and line breaks. | |
quotaUser | string | An opaque string that represents a user for quota purposes. Must not exceed 40 characters. | |
userIp | string | Deprecated. Please use quotaUser instead. |
Request Body
{"accountId"=>"<string>", "childLink"=>{"href"=>"<string>", "type"=>"analytics#profiles"}, "dataRetentionResetOnNewActivity"=>"<boolean>", "dataRetentionTtl"=>"<string>", "defaultProfileId"=>"<string>", "id"=>"<string>", "industryVertical"=>"<string>", "name"=>"<string>", "parentLink"=>{"href"=>"<string>", "type"=>"analytics#account"}, "starred"=>"<boolean>", "websiteUrl"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"accountId":"\u003cstring\u003e","childLink":{"href":"\u003cstring\u003e","type":"analytics#profiles"},"created":"1989-11-18T07:08:38.601Z","dataRetentionResetOnNewActivity":"\u003cboolean\u003e","dataRetentionTtl":"\u003cstring\u003e","defaultProfileId":"\u003cstring\u003e","id":"\u003cstring\u003e","industryVertical":"\u003cstring\u003e","internalWebPropertyId":"l","kind":"analytics#webproperty","level":"ullamco sint laboris anim","name":"\u003cstring\u003e","parentLink":{"href":"\u003cstring\u003e","type":"analytics#account"},"permissions":{"effective":["consequat ea","veniam pariatur"]},"profileCount":24129104,"selfLink":"amet eu","starred":"\u003cboolean\u003e","updated":"1974-07-13T02:27:24.382Z","websiteUrl":"\u003cstring\u003e"}