Description Usage Arguments Value References See Also
View source: R/customMetrics.R
Get a custom metric to which the user has access.
1 | get_custom_metric(accountId, webPropertyId, customMetricId, token)
|
accountId |
character. Account ID for the custom metric to retrieve. |
webPropertyId |
character. Web property ID for the custom metric to retrieve. |
customMetricId |
character. The ID of the custom metric to retrieve. |
token |
|
kind |
Kind value for a custom metric. Set to "analytics#customMetric". It is a read-only field. |
id |
Custom metric ID. |
accountId |
Account ID. |
webPropertyId |
Property ID. |
name |
Name of the custom metric. |
index |
Index of the custom metric. |
scope |
Scope of the custom metric: HIT or PRODUCT. |
active |
Boolean indicating whether the custom metric is active. |
type |
Data type of custom metric. |
min_value |
Min value of custom metric. |
max_value |
Max value of custom metric. |
created |
Time the custom metric was created. |
updated |
Time the custom metric was last modified. |
Management API - Custom Metrics Overview
Other Management API: get_custom_dimension
,
get_experiment
, get_filter
,
get_goal
, get_profile
,
get_unsampled_report
,
get_upload
, get_webproperty
,
list_accounts
,
list_custom_data_sources
,
list_custom_dimensions
,
list_custom_metrics
,
list_experiments
,
list_filters
, list_goals
,
list_profiles
, list_segments
,
list_unsampled_reports
,
list_uploads
,
list_webproperties
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.