试用 Google Analytics 的 MCP 服务器。从
GitHub 安装,并参阅
公告了解详情。
ParameterMutation
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"parameter": string,
"parameterValue": string
} |
字段 |
parameter |
string
必需。要转变的参数的名称。此值必须:* 少于 40 个字符。* 在规则内的所有变更中是唯一的 * 只能包含字母、数字或 _(下划线)对于事件编辑规则,名称也可以设置为“eventName”直接修改现有的 eventName
|
parameterValue |
string
必需。要执行的值变更。* 必须少于 100 个字符。* 要为该参数指定常量值,请使用该值的字符串。* 如需从其他参数复制值,请使用“[[other_parameter]]”等语法有关详情,请参阅这篇帮助中心文章。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eDefines an event parameter for mutation using JSON representation with \u003ccode\u003eparameter\u003c/code\u003e and \u003ccode\u003eparameterValue\u003c/code\u003e fields.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eparameter\u003c/code\u003e specifies the event parameter's name for mutation, adhering to specific length, uniqueness, and character constraints.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eparameterValue\u003c/code\u003e defines the mutation, either as a constant string value or by copying from another parameter using a specific syntax.\u003c/p\u003e\n"]]],["The provided JSON structure defines event parameter mutations, requiring a `parameter` name and its `parameterValue`. The `parameter` must be a unique string (under 40 characters), containing letters, digits, or underscores; 'eventName' is also acceptable for event edits. `parameterValue` (under 100 characters) can be a constant string or reference another parameter using the format \"\\[\\[other_parameter\\]\\]\". This controls how an event's parameter should be changed.\n"],null,["# ParameterMutation\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nDefines an event parameter to mutate.\n\n| JSON representation |\n|-----------------------------------------------------------|\n| ``` { \"parameter\": string, \"parameterValue\": string } ``` |\n\n| Fields ||\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parameter` | `string` Required. The name of the parameter to mutate. This value must: \\* be less than 40 characters. \\* be unique across across all mutations within the rule \\* consist only of letters, digits or _ (underscores) For event edit rules, the name may also be set to 'eventName' to modify the eventName in place. |\n| `parameterValue` | `string` Required. The value mutation to perform. \\* Must be less than 100 characters. \\* To specify a constant value for the param, use the value's string. \\* To copy value from another parameter, use syntax like \"\\[\\[other_parameter\\]\\]\" For more details, see this [help center article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters). |"]]