Google Analytics के लिए, एमसीपी सर्वर आज़माएं. इसे
GitHub से इंस्टॉल करें. साथ ही, ज़्यादा जानकारी के लिए
सूचना देखें.
REST Resource: properties.keyEvents
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
रिसॉर्स: KeyEvent
Google Analytics प्रॉपर्टी में कोई मुख्य इवेंट.
JSON के काेड में दिखाना |
{
"name": string,
"eventName": string,
"createTime": string,
"deletable": boolean,
"custom": boolean,
"countingMethod": enum (CountingMethod ),
"defaultValue": {
object (DefaultValue )
}
} |
फ़ील्ड |
name |
string
सिर्फ़ आउटपुट के लिए. इस मुख्य इवेंट के संसाधन का नाम. फ़ॉर्मैट: properties/{property}/keyEvents/{keyEvent}
|
eventName |
string
इम्यूटेबल. इस मुख्य इवेंट के लिए इवेंट का नाम. उदाहरण: 'क्लिक', 'खरीदारी'
|
createTime |
string (Timestamp format)
सिर्फ़ आउटपुट के लिए. प्रॉपर्टी में इस मुख्य इवेंट को बनाने का समय. आरएफ़सी 3339 का इस्तेमाल करता है. इसमें जनरेट किया गया आउटपुट हमेशा Z-नॉर्मलाइज़्ड होगा और इसमें 0, 3, 6 या 9 दशमलव अंक इस्तेमाल किए जाएंगे. "Z" के अलावा, अन्य ऑफ़सेट भी स्वीकार किए जाते हैं. उदाहरण: "2014-10-02T15:01:23Z" , "2014-10-02T15:01:23.045123456Z" या "2014-10-02T15:01:23+05:30" .
|
deletable |
boolean
सिर्फ़ आउटपुट के लिए. अगर इसे 'सही है' पर सेट किया जाता है, तो इस इवेंट को मिटाया जा सकता है.
|
custom |
boolean
सिर्फ़ आउटपुट के लिए. अगर इस वैल्यू को 'सही है' पर सेट किया जाता है, तो यह मुख्य इवेंट, कस्टम इवेंट के बारे में बताता है. अगर इस वैल्यू को 'गलत' पर सेट किया जाता है, तो यह मुख्य इवेंट GA में किसी डिफ़ॉल्ट इवेंट को रेफ़र करता है. आम तौर पर, GA में डिफ़ॉल्ट इवेंट का खास मतलब होता है. आम तौर पर, GA सिस्टम आपके लिए डिफ़ॉल्ट इवेंट बनाता है. हालांकि, कुछ मामलों में प्रॉपर्टी एडमिन भी इन्हें बना सकते हैं. कस्टम इवेंट की संख्या, हर प्रॉपर्टी के लिए बनाए जा सकने वाले कस्टम मुख्य इवेंट की ज़्यादा से ज़्यादा संख्या में गिनी जाती है.
|
countingMethod |
enum (CountingMethod )
ज़रूरी है. सेशन में कई इवेंट के लिए, मुख्य इवेंट की गिनती करने का तरीका.
|
defaultValue |
object (DefaultValue )
ज़रूरी नहीं. किसी मुख्य इवेंट के लिए डिफ़ॉल्ट वैल्यू/मुद्रा तय करता है.
|
CountingMethod
सेशन में कई इवेंट के लिए, मुख्य इवेंट की गिनती करने का तरीका.
Enums |
COUNTING_METHOD_UNSPECIFIED |
गिनती करने का तरीका नहीं बताया गया है. |
ONCE_PER_EVENT |
हर इवेंट इंस्टेंस को मुख्य इवेंट माना जाता है. |
ONCE_PER_SESSION |
किसी उपयोगकर्ता के हर सेशन में, किसी इवेंट इंस्टेंस को ज़्यादा से ज़्यादा एक बार मुख्य इवेंट माना जाता है. |
DefaultValue
किसी मुख्य इवेंट के लिए डिफ़ॉल्ट वैल्यू/मुद्रा तय करता है.
JSON के काेड में दिखाना |
{
"numericValue": number,
"currencyCode": string
} |
फ़ील्ड |
numericValue |
number
ज़रूरी है. इसका इस्तेमाल, इस मुख्य इवेंट (eventName से तय) की सभी घटनाओं के लिए "value" पैरामीटर को पॉप्युलेट करने के लिए किया जाएगा, जहां वह पैरामीटर सेट नहीं है.
|
currencyCode |
string
ज़रूरी है. अगर eventName से तय किए गए इस मुख्य इवेंट के लिए कोई मुद्रा सेट नहीं की गई है, तो यह मुद्रा डिफ़ॉल्ट तौर पर लागू होगी. यह ISO 4217 मुद्रा कोड फ़ॉर्मैट में होना चाहिए. ज़्यादा जानकारी के लिए, https://en.wikipedia.org/wiki/ISO_4217 देखें.
|
तरीके |
|
मुख्य इवेंट बनाता है. |
|
किसी मुख्य इवेंट को मिटाता है. |
|
किसी एक मुख्य इवेंट को वापस पाएं. |
|
यह फ़ंक्शन, दी गई पैरंट प्रॉपर्टी में मुख्य इवेंट की सूची दिखाता है. |
|
किसी मुख्य इवेंट को अपडेट करता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eKey Events are actions or interactions within a Google Analytics property that can be tracked and analyzed, with options for how they are counted during a session.\u003c/p\u003e\n"],["\u003cp\u003eYou can define a default numeric value and currency for a Key Event to automatically populate these parameters for instances where they are not explicitly set.\u003c/p\u003e\n"],["\u003cp\u003eThere are methods available to create, retrieve, update, and delete Key Events within a property via the API.\u003c/p\u003e\n"],["\u003cp\u003eKey Events can be either custom, defined by property admins, or default, with pre-defined meanings within Google Analytics.\u003c/p\u003e\n"]]],["Key Events in Google Analytics are defined by an event name and can be associated with a counting method (once per event or session). Each Key Event includes attributes like its creation time, custom status, and deletable status. They have optional default values, consisting of a numeric value and currency code. Key Events can be created, deleted, retrieved, listed, and updated using provided methods. The resource includes JSON schema for the data structure.\n"],null,["# REST Resource: properties.keyEvents\n\n- [Resource: KeyEvent](#KeyEvent)\n - [JSON representation](#KeyEvent.SCHEMA_REPRESENTATION)\n- [CountingMethod](#CountingMethod)\n- [DefaultValue](#DefaultValue)\n - [JSON representation](#DefaultValue.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: KeyEvent\n------------------\n\nA key event in a Google Analytics property.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"eventName\": string, \"createTime\": string, \"deletable\": boolean, \"custom\": boolean, \"countingMethod\": enum (/analytics/devguides/config/admin/v1/rest/v1alpha/properties.keyEvents#CountingMethod), \"defaultValue\": { object (/analytics/devguides/config/admin/v1/rest/v1alpha/properties.keyEvents#DefaultValue) } } ``` |\n\n| Fields ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. Resource name of this key event. Format: properties/{property}/keyEvents/{keyEvent} |\n| `eventName` | `string` Immutable. The event name for this key event. Examples: 'click', 'purchase' |\n| `createTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Output only. Time when this key event was created in the property. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than \"Z\" are also accepted. Examples: `\"2014-10-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`. |\n| `deletable` | `boolean` Output only. If set to true, this event can be deleted. |\n| `custom` | `boolean` Output only. If set to true, this key event refers to a custom event. If set to false, this key event refers to a default event in GA. Default events typically have special meaning in GA. Default events are usually created for you by the GA system, but in some cases can be created by property admins. Custom events count towards the maximum number of custom key events that may be created per property. |\n| `countingMethod` | `enum (`[CountingMethod](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.keyEvents#CountingMethod)`)` Required. The method by which Key Events will be counted across multiple events within a session. |\n| `defaultValue` | `object (`[DefaultValue](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.keyEvents#DefaultValue)`)` Optional. Defines a default value/currency for a key event. |\n\nCountingMethod\n--------------\n\nThe method by which Key Events will be counted across multiple events within a session.\n\n| Enums ||\n|-------------------------------|--------------------------------------------------------------------------------|\n| `COUNTING_METHOD_UNSPECIFIED` | Counting method not specified. |\n| `ONCE_PER_EVENT` | Each Event instance is considered a Key Event. |\n| `ONCE_PER_SESSION` | An Event instance is considered a Key Event at most once per session per user. |\n\nDefaultValue\n------------\n\nDefines a default value/currency for a key event.\n\n| JSON representation |\n|------------------------------------------------------------|\n| ``` { \"numericValue\": number, \"currencyCode\": string } ``` |\n\n| Fields ||\n|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `numericValue` | `number` Required. This will be used to populate the \"value\" parameter for all occurrences of this Key Event (specified by eventName) where that parameter is unset. |\n| `currencyCode` | `string` Required. When an occurrence of this Key Event (specified by eventName) has no set currency this currency will be applied as the default. Must be in ISO 4217 currency code format. See \u003chttps://en.wikipedia.org/wiki/ISO_4217\u003e for more information. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------------------------------|----------------------------------------------------------------|\n| ### [create](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.keyEvents/create) | Creates a Key Event. |\n| ### [delete](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.keyEvents/delete) | Deletes a Key Event. |\n| ### [get](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.keyEvents/get) | Retrieve a single Key Event. |\n| ### [list](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.keyEvents/list) | Returns a list of Key Events in the specified parent property. |\n| ### [patch](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.keyEvents/patch) | Updates a Key Event. |"]]