Skip to main content

custom_metrics

Overview

Namecustom_metrics
TypeResource
Idgoogleanalytics.analytics.custom_metrics

Fields

NameDatatypeDescription
idstringCustom metric ID.
namestringName of the custom metric.
kindstringKind value for a custom metric. Set to "analytics#customMetric". It is a read-only field.
webPropertyIdstringProperty ID.
updatedstringTime the custom metric was last modified.
min_valuestringMin value of custom metric.
selfLinkstringLink for the custom metric
indexintegerIndex of the custom metric.
accountIdstringAccount ID.
activebooleanBoolean indicating whether the custom metric is active.
max_valuestringMax value of custom metric.
scopestringScope of the custom metric: HIT or PRODUCT.
parentLinkobjectParent link for the custom metric. Points to the property to which the custom metric belongs.
typestringData type of custom metric.
createdstringTime the custom metric was created.

Methods

NameAccessible byRequired ParamsDescription
management_customMetrics_getSELECTaccountId, customMetricId, webPropertyIdGet a custom metric to which the user has access.
management_customMetrics_listSELECTaccountId, webPropertyIdLists custom metrics to which the user has access.
management_customMetrics_insertEXECaccountId, webPropertyIdCreate a new custom metric.
management_customMetrics_patchEXECaccountId, customMetricId, webPropertyIdUpdates an existing custom metric. This method supports patch semantics.
management_customMetrics_updateEXECaccountId, customMetricId, webPropertyIdUpdates an existing custom metric.