Google Analytics-এর জন্য MCP সার্ভার ব্যবহার করে দেখুন।
GitHub থেকে ইনস্টল করুন এবং আরও বিশদ বিবরণের জন্য
ঘোষণাটি দেখুন।
REST Resource: properties.customMetrics
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
সম্পদ: কাস্টমমেট্রিক
একটি কাস্টম মেট্রিকের জন্য একটি সংজ্ঞা।
JSON প্রতিনিধিত্ব |
---|
{
"name": string,
"parameterName": string,
"displayName": string,
"description": string,
"measurementUnit": enum (MeasurementUnit ),
"scope": enum (MetricScope ),
"restrictedMetricType": [
enum (RestrictedMetricType )
]
} |
ক্ষেত্র |
---|
name | string শুধুমাত্র আউটপুট। এই CustomMetric সম্পদের জন্য সম্পদের নাম। বিন্যাস: বৈশিষ্ট্য/{property}/customMetrics/{customMetric} |
parameterName | string প্রয়োজন। অপরিবর্তনীয়। এই কাস্টম মেট্রিকের জন্য ট্যাগিং নাম। যদি এটি একটি ইভেন্ট-স্কোপড মেট্রিক হয়, তাহলে এটি ইভেন্ট প্যারামিটারের নাম। একটি অক্ষর দিয়ে শুরু করে শুধুমাত্র আলফানিউমেরিক এবং আন্ডারস্কোর অক্ষর থাকতে পারে। ইভেন্ট-স্কোপড মেট্রিক্সের জন্য সর্বাধিক 40 অক্ষরের দৈর্ঘ্য। |
displayName | string প্রয়োজন। Analytics UI-তে দেখানো এই কাস্টম মেট্রিকের জন্য প্রদর্শনের নাম। সর্বাধিক দৈর্ঘ্য 82 অক্ষর, আলফানিউমেরিক প্লাস স্পেস এবং একটি অক্ষর দিয়ে শুরু আন্ডারস্কোর। লিগ্যাসি সিস্টেম-জেনারেটেড ডিসপ্লে নামগুলিতে বর্গাকার বন্ধনী থাকতে পারে, তবে এই ক্ষেত্রের আপডেটগুলি কখনই বর্গাকার বন্ধনীকে অনুমতি দেবে না। |
description | string ঐচ্ছিক। এই কাস্টম মাত্রা জন্য বর্ণনা. সর্বোচ্চ দৈর্ঘ্য 150 অক্ষর। |
measurementUnit | enum ( MeasurementUnit ) প্রয়োজন। কাস্টম মেট্রিকের মানের জন্য প্রকার। |
scope | enum ( MetricScope ) প্রয়োজন। অপরিবর্তনীয়। এই কাস্টম মেট্রিকের সুযোগ। |
restrictedMetricType[] | enum ( RestrictedMetricType ) ঐচ্ছিক। এই মেট্রিকে থাকতে পারে এমন সীমাবদ্ধ ডেটার ধরন। CURRENCY পরিমাপ ইউনিট সহ মেট্রিক্সের জন্য প্রয়োজনীয়। একটি নন-কারেন্সি পরিমাপ ইউনিট সহ মেট্রিক্সের জন্য খালি হতে হবে। |
পরিমাপ ইউনিট
কাস্টম মেট্রিকের মান উপস্থাপনের সম্ভাব্য প্রকার।
মুদ্রার উপস্থাপনা ভবিষ্যতে পরিবর্তিত হতে পারে, একটি ব্রেকিং API পরিবর্তন প্রয়োজন।
Enums |
---|
MEASUREMENT_UNIT_UNSPECIFIED | পরিমাপ ইউনিট অনির্দিষ্ট বা অনুপস্থিত। |
STANDARD | এই মেট্রিক ডিফল্ট ইউনিট ব্যবহার করে। |
CURRENCY | এই মেট্রিক একটি মুদ্রা পরিমাপ করে। |
FEET | এই মেট্রিক ফুট পরিমাপ. |
METERS | এই মেট্রিক মিটার পরিমাপ. |
KILOMETERS | এই মেট্রিক কিলোমিটার পরিমাপ করে। |
MILES | এই মেট্রিক মাইল পরিমাপ. |
MILLISECONDS | এই মেট্রিক মিলিসেকেন্ড পরিমাপ করে। |
SECONDS | এই মেট্রিক সেকেন্ড পরিমাপ করে। |
MINUTES | এই মেট্রিক মিনিট পরিমাপ করে। |
HOURS | এই মেট্রিক ঘন্টা পরিমাপ. |
মেট্রিকস্কোপ
Enums |
---|
METRIC_SCOPE_UNSPECIFIED | স্কোপ অজানা বা নির্দিষ্ট করা নেই। |
EVENT | একটি ইভেন্টে মেট্রিক স্কোপ করা হয়েছে। |
RestrictedMetricType
লেবেল যেগুলি এই কাস্টম মেট্রিকের ডেটাকে ডেটা হিসাবে চিহ্নিত করে যা নির্দিষ্ট ব্যবহারকারীদের জন্য সীমাবদ্ধ করা উচিত৷
Enums |
---|
RESTRICTED_METRIC_TYPE_UNSPECIFIED | অজানা বা অনির্দিষ্ট টাইপ করুন। |
COST_DATA | মেট্রিক রিপোর্ট খরচ ডেটা। |
REVENUE_DATA | মেট্রিক রিপোর্ট রাজস্ব তথ্য. |
পদ্ধতি |
---|
| একটি সম্পত্তিতে একটি CustomMetric আর্কাইভ করে। |
| একটি কাস্টমমেট্রিক তৈরি করে। |
| একটি একক CustomMetric জন্য সন্ধান করুন. |
| একটি সম্পত্তির কাস্টমমেট্রিক্স তালিকাভুক্ত করে। |
| একটি সম্পত্তিতে একটি CustomMetric আপডেট করে। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003eCustomMetric\u003c/code\u003e resource allows you to define custom metrics with specific parameters, display names, descriptions, measurement units, and scopes within Google Analytics.\u003c/p\u003e\n"],["\u003cp\u003eThese custom metrics can have various measurement units like \u003ccode\u003eSTANDARD\u003c/code\u003e, \u003ccode\u003eCURRENCY\u003c/code\u003e, \u003ccode\u003eFEET\u003c/code\u003e, \u003ccode\u003eMETERS\u003c/code\u003e, and more, alongside scopes such as \u003ccode\u003eEVENT\u003c/code\u003e to tailor data collection to specific events.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage your custom metrics with dedicated methods, including \u003ccode\u003earchive\u003c/code\u003e, \u003ccode\u003ecreate\u003c/code\u003e, \u003ccode\u003eget\u003c/code\u003e, \u003ccode\u003elist\u003c/code\u003e, and \u003ccode\u003epatch\u003c/code\u003e to control their lifecycle and properties directly through the API.\u003c/p\u003e\n"],["\u003cp\u003eRestricted data like cost and revenue can be tracked by labeling the metric with specific \u003ccode\u003eRestrictedMetricType\u003c/code\u003e values, ensuring appropriate access controls.\u003c/p\u003e\n"]]],["CustomMetrics are defined by `name`, `parameterName`, `displayName`, `description`, `measurementUnit`, `scope`, and `restrictedMetricType`. `MeasurementUnit` options include standard, currency, and various distance/time units. `MetricScope` can be event-based. `RestrictedMetricType` marks data like cost or revenue. Methods allow creating, retrieving, listing, updating, and archiving custom metrics. These metrics are structured with specific field requirements, such as length and character restrictions.\n"],null,["# REST Resource: properties.customMetrics\n\n- [Resource: CustomMetric](#CustomMetric)\n - [JSON representation](#CustomMetric.SCHEMA_REPRESENTATION)\n- [MeasurementUnit](#MeasurementUnit)\n- [MetricScope](#MetricScope)\n- [RestrictedMetricType](#RestrictedMetricType)\n- [Methods](#METHODS_SUMMARY)\n\nResource: CustomMetric\n----------------------\n\nA definition for a custom metric.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"parameterName\": string, \"displayName\": string, \"description\": string, \"measurementUnit\": enum (/analytics/devguides/config/admin/v1/rest/v1beta/properties.customMetrics#MeasurementUnit), \"scope\": enum (/analytics/devguides/config/admin/v1/rest/v1beta/properties.customMetrics#MetricScope), \"restrictedMetricType\": [ enum (/analytics/devguides/config/admin/v1/rest/v1beta/properties.customMetrics#RestrictedMetricType) ] } ``` |\n\n| Fields ||\n|--------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric} |\n| `parameterName` | `string` Required. Immutable. Tagging name for this custom metric. If this is an event-scoped metric, then this is the event parameter name. May only contain alphanumeric and underscore charactes, starting with a letter. Max length of 40 characters for event-scoped metrics. |\n| `displayName` | `string` Required. Display name for this custom metric as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets. |\n| `description` | `string` Optional. Description for this custom dimension. Max length of 150 characters. |\n| `measurementUnit` | `enum (`[MeasurementUnit](/analytics/devguides/config/admin/v1/rest/v1beta/properties.customMetrics#MeasurementUnit)`)` Required. The type for the custom metric's value. |\n| `scope` | `enum (`[MetricScope](/analytics/devguides/config/admin/v1/rest/v1beta/properties.customMetrics#MetricScope)`)` Required. Immutable. The scope of this custom metric. |\n| `restrictedMetricType[]` | `enum (`[RestrictedMetricType](/analytics/devguides/config/admin/v1/rest/v1beta/properties.customMetrics#RestrictedMetricType)`)` Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit. |\n\nMeasurementUnit\n---------------\n\nPossible types of representing the custom metric's value.\n\nCurrency representation may change in the future, requiring a breaking API change.\n\n| Enums ||\n|--------------------------------|-----------------------------------------|\n| `MEASUREMENT_UNIT_UNSPECIFIED` | MeasurementUnit unspecified or missing. |\n| `STANDARD` | This metric uses default units. |\n| `CURRENCY` | This metric measures a currency. |\n| `FEET` | This metric measures feet. |\n| `METERS` | This metric measures meters. |\n| `KILOMETERS` | This metric measures kilometers. |\n| `MILES` | This metric measures miles. |\n| `MILLISECONDS` | This metric measures milliseconds. |\n| `SECONDS` | This metric measures seconds. |\n| `MINUTES` | This metric measures minutes. |\n| `HOURS` | This metric measures hours. |\n\nMetricScope\n-----------\n\nThe scope of this metric.\n\n| Enums ||\n|----------------------------|---------------------------------|\n| `METRIC_SCOPE_UNSPECIFIED` | Scope unknown or not specified. |\n| `EVENT` | Metric scoped to an event. |\n\nRestrictedMetricType\n--------------------\n\nLabels that mark the data in this custom metric as data that should be restricted to specific users.\n\n| Enums ||\n|--------------------------------------|------------------------------|\n| `RESTRICTED_METRIC_TYPE_UNSPECIFIED` | Type unknown or unspecified. |\n| `COST_DATA` | Metric reports cost data. |\n| `REVENUE_DATA` | Metric reports revenue data. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------------------------------|----------------------------------------|\n| ### [archive](/analytics/devguides/config/admin/v1/rest/v1beta/properties.customMetrics/archive) | Archives a CustomMetric on a property. |\n| ### [create](/analytics/devguides/config/admin/v1/rest/v1beta/properties.customMetrics/create) | Creates a CustomMetric. |\n| ### [get](/analytics/devguides/config/admin/v1/rest/v1beta/properties.customMetrics/get) | Lookup for a single CustomMetric. |\n| ### [list](/analytics/devguides/config/admin/v1/rest/v1beta/properties.customMetrics/list) | Lists CustomMetrics on a property. |\n| ### [patch](/analytics/devguides/config/admin/v1/rest/v1beta/properties.customMetrics/patch) | Updates a CustomMetric on a property. |"]]