Google 애널리틱스용 MCP 서버를 사용해 보세요.
GitHub에서 설치하고
공지사항에서 자세한 내용을 확인하세요.
MatchingCondition
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이벤트 수정 또는 이벤트 생성 규칙이 이벤트에 적용되는 조건을 정의합니다.
JSON 표현 |
{
"field": string,
"comparisonType": enum (ComparisonType ),
"value": string,
"negated": boolean
} |
필드 |
field |
string
필수 항목입니다. 조건과 비교할 필드의 이름입니다. 'eventName'인 경우 이 조건은 이벤트 이름에 적용됩니다. 그렇지 않으면 지정된 이름의 매개변수에 조건이 적용됩니다. 이 값은 공백을 포함할 수 없습니다.
|
comparisonType |
enum (ComparisonType )
필수 항목입니다. 값에 적용할 비교 유형입니다.
|
value |
string
필수 항목입니다. 이 조건과 비교할 값입니다. 런타임 구현은 이 값의 유형 강제 변환을 수행하여 매개변수 값의 유형을 기반으로 이 조건을 평가할 수 있습니다.
|
negated |
boolean
비교 결과를 무효화해야 하는지 여부입니다. 예를 들어 negated 가 true이면 '같음'입니다. 비교는 '같지 않음'으로 작동합니다.
|
ComparisonType
열거형 |
COMPARISON_TYPE_UNSPECIFIED |
알 수 없음 |
EQUALS |
같음, 대소문자 구분 |
EQUALS_CASE_INSENSITIVE |
같음, 대소문자 구분 없음 |
CONTAINS |
포함, 대소문자 구분 |
CONTAINS_CASE_INSENSITIVE |
포함(대소문자를 구분하지 않음) |
STARTS_WITH |
다음으로 시작(대소문자 구분) |
STARTS_WITH_CASE_INSENSITIVE |
다음으로 시작(대소문자를 구분하지 않음) |
ENDS_WITH |
다음으로 끝남(대소문자 구분) |
ENDS_WITH_CASE_INSENSITIVE |
다음으로 끝남, 대소문자를 구분하지 않음 |
GREATER_THAN |
초과 |
GREATER_THAN_OR_EQUAL |
이상 |
LESS_THAN |
미만 |
LESS_THAN_OR_EQUAL |
이하 |
REGULAR_EXPRESSION |
사용할 수 있습니다. 웹 스트림에서만 지원됩니다. |
REGULAR_EXPRESSION_CASE_INSENSITIVE |
정규 표현식, 대소문자를 구분하지 않습니다. 웹 스트림에서만 지원됩니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eMatchingCondition defines criteria for when an Event Edit or Event Creation rule is applied, based on event properties.\u003c/p\u003e\n"],["\u003cp\u003eIt uses a comparison between a specified event field and a given value, with options for case sensitivity and negation.\u003c/p\u003e\n"],["\u003cp\u003eSupported comparison types include equality, containment, starts/ends with, greater/less than, and regular expressions (web streams only).\u003c/p\u003e\n"],["\u003cp\u003eThe condition can be applied to the event name or any event parameter, enabling flexible rule creation.\u003c/p\u003e\n"]]],["This describes a matching condition used in event rules, defined via a JSON object with `field`, `comparisonType`, `value`, and `negated`. The `field` specifies the parameter or 'eventName' for comparison. The `comparisonType` defines the comparison method, such as `EQUALS`, `CONTAINS`, or `GREATER_THAN`. The `value` is the comparison target, and `negated` inverts the comparison result. Available `comparisonType` options also include case-insensitive variants and regular expression matching.\n"],null,["# MatchingCondition\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [ComparisonType](#ComparisonType)\n\nDefines a condition for when an Event Edit or Event Creation rule applies to an event.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"field\": string, \"comparisonType\": enum (/analytics/devguides/config/admin/v1/rest/v1alpha/MatchingCondition#ComparisonType), \"value\": string, \"negated\": boolean } ``` |\n\n| Fields ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `field` | `string` Required. The name of the field that is compared against for the condition. If 'eventName' is specified this condition will apply to the name of the event. Otherwise the condition will apply to a parameter with the specified name. This value cannot contain spaces. |\n| `comparisonType` | `enum (`[ComparisonType](/analytics/devguides/config/admin/v1/rest/v1alpha/MatchingCondition#ComparisonType)`)` Required. The type of comparison to be applied to the value. |\n| `value` | `string` Required. The value being compared against for this condition. The runtime implementation may perform type coercion of this value to evaluate this condition based on the type of the parameter value. |\n| `negated` | `boolean` Whether or not the result of the comparison should be negated. For example, if `negated` is true, then 'equals' comparisons would function as 'not equals'. |\n\nComparisonType\n--------------\n\nComparison type for matching condition\n\n| Enums ||\n|---------------------------------------|-----------------------------------------------------------------------|\n| `COMPARISON_TYPE_UNSPECIFIED` | Unknown |\n| `EQUALS` | Equals, case sensitive |\n| `EQUALS_CASE_INSENSITIVE` | Equals, case insensitive |\n| `CONTAINS` | Contains, case sensitive |\n| `CONTAINS_CASE_INSENSITIVE` | Contains, case insensitive |\n| `STARTS_WITH` | Starts with, case sensitive |\n| `STARTS_WITH_CASE_INSENSITIVE` | Starts with, case insensitive |\n| `ENDS_WITH` | Ends with, case sensitive |\n| `ENDS_WITH_CASE_INSENSITIVE` | Ends with, case insensitive |\n| `GREATER_THAN` | Greater than |\n| `GREATER_THAN_OR_EQUAL` | Greater than or equal |\n| `LESS_THAN` | Less than |\n| `LESS_THAN_OR_EQUAL` | Less than or equal |\n| `REGULAR_EXPRESSION` | regular expression. Only supported for web streams. |\n| `REGULAR_EXPRESSION_CASE_INSENSITIVE` | regular expression, case insensitive. Only supported for web streams. |"]]