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\u003eA \u003ccode\u003eCustomMetric\u003c/code\u003e defines custom metrics for data analysis within Google Analytics, allowing users to track specific events and parameters relevant to their business needs.\u003c/p\u003e\n"],["\u003cp\u003eThese metrics can be defined with various units of measurement (\u003ccode\u003eMeasurementUnit\u003c/code\u003e) including standard, currency, time, and distance, catering to diverse data types.\u003c/p\u003e\n"],["\u003cp\u003eThe scope of a custom metric can be specified (\u003ccode\u003eMetricScope\u003c/code\u003e) to be associated with an event, dictating the context in which the metric is collected.\u003c/p\u003e\n"],["\u003cp\u003eCustom metrics can also be designated as containing restricted data types such as cost or revenue (\u003ccode\u003eRestrictedMetricType\u003c/code\u003e) for enhanced privacy and access control.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Analytics provides methods to manage custom metrics: \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, allowing for comprehensive control over these custom data points.\u003c/p\u003e\n"]]],["CustomMetrics are defined by a name, parameter name, display name, description, measurement unit, scope, and restricted metric type. Measurement units include standard, currency, distance, and time. Metric scopes can be event-based. Restricted metric types include cost and revenue data. Key actions involve creating, retrieving, listing, updating, and archiving custom metrics, utilizing methods for each of these operations, like create, get, list, patch, and archive.\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/v1alpha/properties.customMetrics#MeasurementUnit), \"scope\": enum (/analytics/devguides/config/admin/v1/rest/v1alpha/properties.customMetrics#MetricScope), \"restrictedMetricType\": [ enum (/analytics/devguides/config/admin/v1/rest/v1alpha/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/v1alpha/properties.customMetrics#MeasurementUnit)`)` Required. The type for the custom metric's value. |\n| `scope` | `enum (`[MetricScope](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.customMetrics#MetricScope)`)` Required. Immutable. The scope of this custom metric. |\n| `restrictedMetricType[]` | `enum (`[RestrictedMetricType](/analytics/devguides/config/admin/v1/rest/v1alpha/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/v1alpha/properties.customMetrics/archive) | Archives a CustomMetric on a property. |\n| ### [create](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.customMetrics/create) | Creates a CustomMetric. |\n| ### [get](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.customMetrics/get) | Lookup for a single CustomMetric. |\n| ### [list](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.customMetrics/list) | Lists CustomMetrics on a property. |\n| ### [patch](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.customMetrics/patch) | Updates a CustomMetric on a property. |"]]