ज़रूरी है. फ़ॉर्मैट: प्रॉपर्टीज़/{property_id} उदाहरण: प्रॉपर्टीज़/1234
क्वेरी पैरामीटर
पैरामीटर
calculatedMetricId
string
ज़रूरी है. कैलकुलेट की गई मेट्रिक के लिए इस्तेमाल किया जाने वाला आईडी, जो कैलकुलेट की गई मेट्रिक के संसाधन के नाम का फ़ाइनल कॉम्पोनेंट बनेगा.
यह वैल्यू 1 से 80 वर्णों की होनी चाहिए. साथ ही, इसमें मान्य वर्ण /[a-zA-Z0-9_]/ के तौर पर होने चाहिए. इसमें खाली जगह नहीं होनी चाहिए. किसी प्रॉपर्टी में, कैलकुलेट की गई मेट्रिक का आईडी यूनीक होना चाहिए. कैलकुलेट की गई मेट्रिक आईडी का इस्तेमाल, बाहरी एपीआई से कैलकुलेट की गई मेट्रिक का रेफ़रंस करते समय किया जाता है. उदाहरण के लिए, "calcMetric:{कैलकुलेट मेट्रिकId}".
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eCreates a new CalculatedMetric within a specified Google Analytics 4 property using an HTTP POST request.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing a unique \u003ccode\u003ecalculatedMetricId\u003c/code\u003e and the \u003ccode\u003eproperty_id\u003c/code\u003e as path and query parameters, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain the CalculatedMetric definition, and a successful response will return the newly created CalculatedMetric instance.\u003c/p\u003e\n"],["\u003cp\u003eUsers need to have the \u003ccode\u003eanalytics.edit\u003c/code\u003e OAuth scope to authorize this operation.\u003c/p\u003e\n"]]],["This documentation details how to create a CalculatedMetric via a `POST` request to the specified URL, including required components such as path and query parameters, the request body and the response body. The path parameter `parent` defines the property ID. The query parameter `calculatedMetricId` is a unique identifier. The request and response bodies are `CalculatedMetric` instances. This action requires authorization scope: `https://www.googleapis.com/auth/analytics.edit`.\n"],null,[]]