किसी रिपोर्ट का क्वांटिटेटिव मेज़रमेंट. उदाहरण के लिए, eventCount मेट्रिक, इवेंट की कुल संख्या होती है. ज़्यादा से ज़्यादा 10 मेट्रिक के अनुरोध किए जा सकते हैं.
मेट्रिक का नाम. runReport और batchRunReports जैसे मुख्य रिपोर्टिंग तरीकों के साथ काम करने वाली मेट्रिक के नामों की सूची के लिए, एपीआई मेट्रिक देखें. runRealtimeReport तरीके से काम करने वाली मेट्रिक के नामों की सूची के लिए, रीयल टाइम मेट्रिक देखें. runFunnelReport तरीके से काम करने वाली मेट्रिक के नामों की सूची के लिए, फ़नल मेट्रिक देखें.
अगर expression तय किया गया है, तो name कोई भी ऐसी स्ट्रिंग हो सकती है जिसे आपको अनुमति वाले वर्ण सेट के अंदर रखना हो. उदाहरण के लिए, अगर expressionscreenPageViews/sessions है, तो उस मेट्रिक के नाम को = viewsPerSession कॉल किया जा सकता है. आपके चुने गए मेट्रिक के नाम, रेगुलर एक्सप्रेशन ^[a-zA-Z0-9_]$ से मेल खाने चाहिए.
मेट्रिक का रेफ़रंस name में metricFilter, orderBys, और मेट्रिक expression में दिया जाता है.
expression
string
डिराइव्ड मेट्रिक के लिए मैथमेटिकल एक्सप्रेशन. उदाहरण के लिए, हर उपयोगकर्ता के हिसाब से इवेंट की संख्या eventCount/totalUsers है.
invisible
boolean
इससे पता चलता है कि रिपोर्ट के जवाब में कोई मेट्रिक नहीं दिख रही है या नहीं. अगर कोई मेट्रिक नहीं दिखती है, तो जवाब में मेट्रिक कॉलम नहीं बनेगी. हालांकि, इसका इस्तेमाल metricFilter, orderBys या मेट्रिक expression में किया जा सकता है.
[[["समझने में आसान है","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"]],["आखिरी बार 2024-09-10 (UTC) को अपडेट किया गया."],[[["Metrics quantify report data, such as the total events with `eventCount`."],["You can request up to 10 metrics in a report."],["Metrics are defined by `name`, `expression` for calculations, and `invisible` to control visibility."],["`name` can be a standard metric or a custom name when `expression` is used."],["`expression` enables creating calculated metrics like \"Event count per user\" (`eventCount/totalUsers`)."]]],["This document outlines the structure for defining quantitative measurements (metrics) within a report. Each metric has a `name` (a string that can be custom when using an `expression`), an optional `expression` (a mathematical formula to derive the metric), and an `invisible` boolean, the metric can be excluded from the report's output but used for filtering, ordering, or in other metrics' `expression` . Up to 10 metrics are allowed per request.\n"]]