כדאי לנסות את שרת ה-MCP ל-Google Analytics. אפשר להתקין מ-
GitHub, ולקרוא את
ההודעה לפרטים נוספים.
MatchingCondition
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מגדיר תנאי להחלת כלל של עריכת אירוע או יצירת אירוע על אירוע.
ייצוג JSON |
{
"field": string,
"comparisonType": enum (ComparisonType ),
"value": string,
"negated": boolean
} |
שדות |
field |
string
חובה. שם השדה שמושווה אליו עבור התנאי. אם 'eventName' שצוין התנאי הזה יחול על שם האירוע. אחרת, התנאי יחול על פרמטר עם השם שצוין. הערך הזה לא יכול להכיל רווחים.
|
comparisonType |
enum (ComparisonType )
חובה. סוג ההשוואה שצריך להחיל על הערך.
|
value |
string
חובה. הערך שאליו מתבצעת השוואה של התנאי הזה. במהלך ההטמעה של סביבת זמן הריצה, המערכת עשויה לכפות סוג של הערך הזה כדי להעריך את התנאי הזה על סמך הסוג של ערך הפרמטר.
|
negated |
boolean
האם יש לשלול את תוצאת ההשוואה או לא. לדוגמה, אם הערך negated נכון, אז 'שווה ל-' השוואות יפעלו כ-'not equals'.
|
ComparisonType
טיפוסים בני מנייה (enum) |
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. Java הוא סימן מסחרי רשום של חברת 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. |"]]