标准查询参数
以下查询参数可用于 Google Analytics(分析)API 中的所有方法和所有资源。
除非特别注明,否则所有参数均为可选参数。
参数 |
含义 |
备注 |
callback |
回调函数。 |
- 用于处理响应的 JavaScript 回调函数的名称。
- 用于 JavaScript JSON-P 请求。
|
fields |
用于指定要包含在响应中的字段子集的选择器。
| |
prettyPrint |
返回带有缩进和换行符的响应。 |
- 如果该参数的值为
true ,系统会以用户可读的格式返回响应。
- 默认值:
true 。
- 如果该参数的值为
false ,则可以减少响应的有效负载,进而在某些环境中提升性能。
|
quotaUser |
可替代 userIp 。 |
- 即使不知道用户的 IP 地址,您也可以通过服务器端的应用,强制执行每个用户的配额限制。例如,当应用代表用户在 App 引擎上运行定时任务时,会发生此类情况。
- 您可以选择任意字符串用作辨别用户的唯一标识符,但字符数不能超过 40 个。
- 如果两者均有提供,则替换
userIp 。
- 详细了解设置 API 使用上限。
|
userIp |
最终用户的 IP 地址,表示此 API 是为哪个用户调用的。 |
- 通过服务器端应用调用 API 时,您可以利用该参数强制执行每个用户的配额限制。
- 详细了解设置 API 使用上限。
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2019-01-23 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]