試用 Google Analytics 的 MCP 伺服器。從
GitHub 安裝,詳情請參閱
公告。
REST Resource: properties.dataStreams.eventEditRules
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:EventEditRule
事件編輯規則可定義會根據來源事件的相符條件,觸發建立全新事件的條件。可定義來源事件的其他參數異動。
與事件建立規則不同的是,事件編輯規則會按照定義的順序套用。
事件編輯規則無法用於修改透過事件建立規則建立的事件。
JSON 表示法 |
{
"name": string,
"displayName": string,
"eventConditions": [
{
object (MatchingCondition )
}
],
"parameterMutations": [
{
object (ParameterMutation )
}
],
"processingOrder": string
} |
欄位 |
name |
string
ID。這項 EventEditRule 資源的資源名稱。格式:properties/{property}/dataStreams/{dataStream}/eventEditRules/{eventEditRule}
|
displayName |
string
必要欄位。這項事件編輯規則的顯示名稱。最多 255 個字元。
|
eventConditions[] |
object (MatchingCondition )
必要欄位。來源事件的條件必須相符,系統才會套用這項規則。至少要有 1 項條件,最多 10 項。
|
parameterMutations[] |
object (ParameterMutation )
必要欄位。參數異動會定義新事件的參數行為並依序套用。最多可以套用 20 項異動。
|
processingOrder |
string (int64 format)
僅供輸出。處理這項規則的順序。系統會先處理訂單價值低於這個規則的規則,再處理訂單價值高於這個值的規則。系統會在訂單結束時,為新的事件編輯規則指派訂單價值。 這個值不適用於事件建立規則。
|
方法 |
|
建立 EventEditRule。 |
|
刪除 EventEditRule。 |
|
查詢單一 EventEditRule。 |
|
列出網站資料串流上的 EventEditRules。 |
|
更新 EventEditRule。 |
|
變更指定串流的事件編輯規則處理順序。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eAn Event Edit Rule generates a new event based on matching criteria from a source event and allows for parameter modifications.\u003c/p\u003e\n"],["\u003cp\u003eEvent Edit Rules are applied sequentially in their defined order, unlike Event Create rules.\u003c/p\u003e\n"],["\u003cp\u003eThese rules cannot modify events originating from Event Create rules.\u003c/p\u003e\n"],["\u003cp\u003eEvent Edit Rules include definable conditions, parameter mutations, and a processing order for execution.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage Event Edit Rules using methods like create, delete, get, list, patch, and reorder to control event processing.\u003c/p\u003e\n"]]],["Event Edit Rules create new events based on source event criteria, with defined parameter mutations. Rules are applied sequentially based on `processingOrder`. Each rule has a `name`, `displayName`, `eventConditions`, and `parameterMutations`. Rules can be created, deleted, retrieved, listed, updated, and reordered. Matching conditions trigger the rule's application, with mutations modifying parameters. Up to 10 conditions and 20 mutations are allowed.\n"],null,["# REST Resource: properties.dataStreams.eventEditRules\n\n- [Resource: EventEditRule](#EventEditRule)\n - [JSON representation](#EventEditRule.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: EventEditRule\n-----------------------\n\nAn Event Edit Rule defines conditions that will trigger the creation of an entirely new event based upon matched criteria of a source event. Additional mutations of the parameters from the source event can be defined.\n\nUnlike Event Create rules, Event Edit Rules are applied in their defined order.\n\nEvent Edit rules can't be used to modify an event created from an Event Create rule.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"displayName\": string, \"eventConditions\": [ { object (/analytics/devguides/config/admin/v1/rest/v1alpha/MatchingCondition) } ], \"parameterMutations\": [ { object (/analytics/devguides/config/admin/v1/rest/v1alpha/ParameterMutation) } ], \"processingOrder\": string } ``` |\n\n| Fields ||\n|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Identifier. Resource name for this EventEditRule resource. Format: properties/{property}/dataStreams/{dataStream}/eventEditRules/{eventEditRule} |\n| `displayName` | `string` Required. The display name of this event edit rule. Maximum of 255 characters. |\n| `eventConditions[]` | `object (`[MatchingCondition](/analytics/devguides/config/admin/v1/rest/v1alpha/MatchingCondition)`)` Required. Conditions on the source event must match for this rule to be applied. Must have at least one condition, and can have up to 10 max. |\n| `parameterMutations[]` | `object (`[ParameterMutation](/analytics/devguides/config/admin/v1/rest/v1alpha/ParameterMutation)`)` Required. Parameter mutations define parameter behavior on the new event, and are applied in order. A maximum of 20 mutations can be applied. |\n| `processingOrder` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The order for which this rule will be processed. Rules with an order value lower than this will be processed before this rule, rules with an order value higher than this will be processed after this rule. New event edit rules will be assigned an order value at the end of the order. This value does not apply to event create rules. |\n\n| Methods ------- ||\n|----------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------|\n| ### [create](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.eventEditRules/create) | Creates an EventEditRule. |\n| ### [delete](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.eventEditRules/delete) | Deletes an EventEditRule. |\n| ### [get](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.eventEditRules/get) | Lookup for a single EventEditRule. |\n| ### [list](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.eventEditRules/list) | Lists EventEditRules on a web data stream. |\n| ### [patch](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.eventEditRules/patch) | Updates an EventEditRule. |\n| ### [reorder](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.eventEditRules/reorder) | Changes the processing order of event edit rules on the specified stream. |"]]