Google Analytics के लिए, एमसीपी सर्वर आज़माएं. इसे
GitHub से इंस्टॉल करें. साथ ही, ज़्यादा जानकारी के लिए
सूचना देखें.
रीयल टाइम डाइमेंशन और मेट्रिक
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Analytics Data API के रीयलटाइम तरीके की क्वेरी में इस्तेमाल किए जा सकने वाले डाइमेंशन और मेट्रिक. कोर रिपोर्टिंग के तरीके (उदाहरण के लिए, RunReport
) में, रीयलटाइम रिपोर्टिंग के तरीके की तुलना में डाइमेंशन और मेट्रिक का अलग सेट इस्तेमाल किया जाता है.
आयाम
किसी भी प्रॉपर्टी के लिए रिपोर्ट में इन डाइमेंशन का अनुरोध किया जा सकता है. रिपोर्ट के जवाब में डाइमेंशन के कॉलम के लिए, Dimension
संसाधन के name
फ़ील्ड में "एपीआई का नाम" तय करें.
एपीआई का नाम |
यूज़र इंटरफ़ेस (यूआई) का नाम |
ब्यौरा |
appVersion |
ऐप्लिकेशन का वर्शन |
ऐप्लिकेशन का versionName (Android) या शॉर्ट बंडल वर्शन (iOS). |
audienceId |
दर्शक आईडी |
यह ऑडियंस का न्यूमेरिक आइडेंटिफ़ायर होता है. उपयोगकर्ताओं को ऑडियंस में उस तारीख की सीमा के दौरान रिपोर्ट किया जाता है जहां वे शामिल थे. मौजूदा उपयोगकर्ता व्यवहार से, रिपोर्ट में पुरानी ऑडियंस की सदस्यता पर कोई असर नहीं पड़ता. |
audienceName |
ऑडियंस का नाम |
ऑडियंस का दिया गया नाम. उपयोगकर्ताओं को ऑडियंस में उस तारीख की सीमा के दौरान रिपोर्ट किया जाता है जहां वे शामिल थे. मौजूदा उपयोगकर्ता व्यवहार से, रिपोर्ट में पुरानी ऑडियंस की सदस्यता पर कोई असर नहीं पड़ता. |
audienceResourceName |
ऑडियंस के संसाधन का नाम |
इस ऑडियंस के संसाधन का नाम. संसाधन के नाम में कलेक्शन और संसाधन आइडेंटिफ़ायर, दोनों शामिल होते हैं. इनसे किसी संसाधन की यूनीक पहचान होती है. ज़्यादा जानने के लिए, संसाधन के नाम देखें. |
city |
शहर |
वह शहर जहां से उपयोगकर्ता की गतिविधि हुई थी. |
cityId |
City ID |
उपयोगकर्ता की गतिविधि जिस शहर से हुई है उसका भौगोलिक आईडी. यह आईडी, उपयोगकर्ता के आईपी पते से मिलता है. |
country |
देश |
वह देश जिससे उपयोगकर्ता की गतिविधि हुई थी. |
countryId |
देश का आईडी |
उस देश का भौगोलिक आईडी जहां से उपयोगकर्ता गतिविधि हुई थी. यह आईडी, उपयोगकर्ता के आईपी पते से मिलता है. ISO 3166-1 alpha-2 स्टैंडर्ड के मुताबिक फ़ॉर्मैट किया गया. |
deviceCategory |
डिवाइस श्रेणी |
डिवाइस का प्रकार: डेस्कटॉप, टैबलेट या मोबाइल. |
eventName |
इवेंट का नाम |
इवेंट का नाम. |
minutesAgo |
रीयल टाइम (कुछ मिनट पहले) |
यह बताता है कि किसी इवेंट को कितने मिनट पहले इकट्ठा किया गया था. 00 का मतलब मौजूदा मिनट है और 01 का मतलब पिछला मिनट है. |
platform |
प्लैटफ़ॉर्म |
वह प्लैटफ़ॉर्म जिस पर आपका ऐप्लिकेशन या वेबसाइट दिखाई गई थी; जैसे कि वेब, iOS या Android. रिपोर्ट में किसी स्ट्रीम का टाइप तय करने के लिए, प्लैटफ़ॉर्म और streamId, दोनों का इस्तेमाल करें. |
streamId |
स्ट्रीम आईडी |
आपके ऐप्लिकेशन या वेबसाइट के लिए, डेटा स्ट्रीम का न्यूमेरिक आइडेंटिफ़ायर. |
streamName |
स्ट्रीम का नाम |
आपके ऐप्लिकेशन या वेबसाइट के लिए डेटा स्ट्रीम का नाम. |
unifiedScreenName |
पेज का शीर्षक और स्क्रीन का नाम |
वह पेज टाइटल (वेब) या स्क्रीन का नाम (ऐप्लिकेशन) जिस पर इवेंट लॉग किया गया था. |
कस्टम डाइमेंशन
रीयलटाइम डेटा एपीआई, उपयोगकर्ता के स्कोप वाले कस्टम डाइमेंशन पर रिपोर्ट बना सकता है. कस्टम डाइमेंशन के बारे में ज़्यादा जानने के लिए, कस्टम उपयोगकर्ता प्रॉपर्टी देखें. कस्टम डाइमेंशन को एपीआई रिपोर्ट के अनुरोध में, डाइमेंशन के पैरामीटर के नाम और स्कोप के हिसाब से तय किया जाता है. उदाहरण के लिए, "last_level"
पैरामीटर के नाम वाले उपयोगकर्ता के स्कोप वाले कस्टम डाइमेंशन के लिए रिपोर्ट बनाने के लिए, Data API के अनुरोध में "customUser:last_level"
शामिल करें. अगर प्रॉपर्टी ने उपयोगकर्ता के स्कोप वाले इस कस्टम डाइमेंशन को रजिस्टर नहीं किया है, तो एपीआई का यह अनुरोध पूरा नहीं होगा.
कस्टम डाइमेंशन के लिए सामान्य सिंटैक्स यहां दिए गए हैं. किसी प्रॉपर्टी के सभी कस्टम डाइमेंशन की सूची पाने के लिए, Metadata API के तरीके का इस्तेमाल करके क्वेरी की जा सकती है.
एपीआई का सामान्य नाम |
ब्यौरा |
customUser:parameter_name |
parameter_name के लिए, उपयोगकर्ता के स्कोप वाला कस्टम डाइमेंशन. |
रीयलटाइम एपीआई में, इवेंट के स्कोप वाले कस्टम डाइमेंशन काम नहीं करते.
मेट्रिक
किसी भी प्रॉपर्टी के लिए रिपोर्ट में, इन मेट्रिक का अनुरोध किया जा सकता है. रिपोर्ट के जवाब में मेट्रिक के कॉलम के लिए, Metric
संसाधन के name
फ़ील्ड में "एपीआई का नाम" तय करें.
एपीआई का नाम |
यूज़र इंटरफ़ेस (यूआई) का नाम |
ब्यौरा |
activeUsers |
सक्रिय उपयोगकर्ता |
आपकी साइट या ऐप्लिकेशन पर आने वाले अलग-अलग उपयोगकर्ताओं की संख्या. |
eventCount |
इवेंट की संख्या |
इवेंट की संख्या. |
keyEvents |
मुख्य इवेंट |
मुख्य इवेंट की संख्या. किसी इवेंट को मुख्य इवेंट के तौर पर मार्क करने से, उन रिपोर्ट पर असर पड़ता है जो इवेंट को कन्वर्ज़न के तौर पर मार्क किए जाने के बाद बनी हैं. पहले से मौजूद रिपोर्ट पर इसका असर नहीं पड़ता. इससे पुराने डेटा में कोई बदलाव नहीं होता है. Google Analytics में, किसी भी इवेंट को मुख्य इवेंट के तौर पर मार्क किया जा सकता है. साथ ही, कुछ इवेंट (जैसे कि first_open या purchase ) डिफ़ॉल्ट रूप से मुख्य इवेंट के तौर पर मार्क होते हैं. |
screenPageViews |
व्यू |
आपके उपयोगकर्ताओं ने जो ऐप्लिकेशन स्क्रीन या वेब पेज देखे हैं उनकी संख्या. किसी एक पेज या स्क्रीन को बार-बार देखा जाना भी गिनती में शामिल होता है. (screen_view + page_view इवेंट). |
इवेंट के स्कोप वाली कस्टम मेट्रिक, Realtime API में काम नहीं करतीं.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-29 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-29 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe Realtime reporting method of the Analytics Data API allows you to query specific dimensions and metrics to analyze real-time user behavior on your app or website.\u003c/p\u003e\n"],["\u003cp\u003eSupported dimensions include user demographics (like city and country), device information, app version, audience data, event details, and user-scoped custom dimensions.\u003c/p\u003e\n"],["\u003cp\u003eYou can use metrics like \u003ccode\u003eactiveUsers\u003c/code\u003e, \u003ccode\u003eeventCount\u003c/code\u003e, \u003ccode\u003escreenPageViews\u003c/code\u003e, and \u003ccode\u003ekeyEvents\u003c/code\u003e to understand real-time user engagement.\u003c/p\u003e\n"],["\u003cp\u003eUnlike Core Reporting methods, the Realtime method uses a different set of dimensions and metrics and doesn't support event-scoped custom dimensions or metrics.\u003c/p\u003e\n"]]],["The Realtime Analytics Data API supports specific dimensions and metrics for querying. Dimensions include `appVersion`, `audienceId/Name/ResourceName`, geographic data (`city/Id`, `country/Id`), `deviceCategory`, `eventName`, `minutesAgo`, `platform`, `streamId/Name`, and `unifiedScreenName`. User-scoped custom dimensions are supported using the `customUser:parameter_name` format. Supported metrics are `activeUsers`, `eventCount`, `keyEvents`, and `screenPageViews`. Event-scoped custom dimensions and metrics are not supported in the Realtime API.\n"],null,["# Realtime Dimensions & Metrics\n\nThe dimensions and metrics supported in queries to the [Realtime method](/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runRealtimeReport) of the Analytics Data API. The\nCore Reporting methods ([`RunReport`](/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport)\nfor example) accept a different set of [Dimensions \\& Metrics](/analytics/devguides/reporting/data/v1/api-schema)\nthan the Realtime method.\n\nDimensions\n----------\n\nThe following dimensions can be requested in reports for any property. Specify\nthe \"API Name\" in a [`Dimension`](/analytics/devguides/reporting/data/v1/rest/v1beta/Dimension) resource's `name`\nfield for a column of the dimension in the report response.\n\n| API Name | UI Name | Description |\n|------------------------|----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `appVersion` | App version | The app's versionName (Android) or short bundle version (iOS). |\n| `audienceId` | Audience ID | The numeric identifier of an Audience. Users are reported in the audiences to which they belonged during the report's date range. Current user behavior does not affect historical audience membership in reports. |\n| `audienceName` | Audience name | The given name of an Audience. Users are reported in the audiences to which they belonged during the report's date range. Current user behavior does not affect historical audience membership in reports. |\n| `audienceResourceName` | Audience resource name | The resource name of this audience. Resource names contain both collection \\& resource identifiers to uniquely identify a resource; to learn more, see [Resource names](//google.aip.dev/122). |\n| `city` | City | The city from which the user activity originated. |\n| `cityId` | City ID | The geographic ID of the city from which the user activity originated, derived from their IP address. |\n| `country` | Country | The country from which the user activity originated. |\n| `countryId` | Country ID | The geographic ID of the country from which the user activity originated, derived from their IP address. Formatted according to ISO 3166-1 alpha-2 standard. |\n| `deviceCategory` | Device category | The type of device: Desktop, Tablet, or Mobile. |\n| `eventName` | Event name | The name of the event. |\n| `minutesAgo` | Realtime minutes ago | The number of minutes ago that an event was collected. 00 is the current minute, and 01 means the previous minute. |\n| `platform` | Platform | The platform on which your app or website ran; for example, web, iOS, or Android. To determine a stream's type in a report, use both platform and streamId. |\n| `streamId` | Stream ID | The numeric data stream identifier for your app or website. |\n| `streamName` | Stream name | The data stream name for your app or website. |\n| `unifiedScreenName` | Page title and screen name | The page title (web) or screen name (app) on which the event was logged. |\n\n### Custom Dimensions\n\nThe Realtime Data API can create reports on User scoped Custom Dimensions. See\n[Custom user properties](//support.google.com/analytics/answer/9269570) to learn\nmore about custom dimensions. Custom dimensions are specified in an API report\nrequest by the dimension's parameter name and scope. For example, include\n`\"customUser:last_level\"` in a Data API request to create a report for the\nUser-scoped Custom Dimension with parameter name `\"last_level\"`. This API\nrequest will fail if the property has not registered this User-scoped Custom\nDimension.\n\nThe following are the general syntax for Custom Dimensions. You can query the\n[Metadata API method](/analytics/devguides/reporting/data/v1/rest/v1beta/properties/getMetadata) to list all\nCustom Dimensions for a Property.\n\n| Generic API Name | Description |\n|-----------------------------|----------------------------------------------------|\n| `customUser:parameter_name` | User-scoped Custom Dimension for `parameter_name`. |\n\nEvent-scoped custom dimensions aren't supported in the Realtime API.\n\nMetrics\n-------\n\nThe following metrics can be requested in reports for any property. Specify the\n\"API Name\" in a [`Metric`](/analytics/devguides/reporting/data/v1/rest/v1beta/Metric) resource's `name` field for\na column of the metric in the report response.\n\n| API Name | UI Name | Description |\n|-------------------|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `activeUsers` | Active users | The number of distinct users who visited your site or app. |\n| `eventCount` | Event count | The count of events. |\n| `keyEvents` | Key events | The count of key events. Marking an event as a key event affects reports from time of creation. It doesn't change historic data. You can mark any event as key in Google Analytics, and some events (such as `first_open` or `purchase`) are marked as key events by default. |\n| `screenPageViews` | Views | The number of app screens or web pages your users viewed. Repeated views of a single page or screen are counted. (screen_view + page_view events). |\n\nEvent-scoped custom metrics aren't supported in the Realtime API."]]