Get

Get a custom metric to which the user has access

3 variables
17 variables

Get a custom metric to which the user has access

Authorization

To use this building block you will have to grant access to at least one of the following scopes:

  • Edit Google Analytics management entities
  • View your Google Analytics data

Input

This building block consumes 3 input parameters

  = Parameter name
  = Format

accountId STRING Required

Account ID for the custom metric to retrieve

webPropertyId STRING Required

Web property ID for the custom metric to retrieve

customMetricId STRING Required

The ID of the custom metric to retrieve

Output

This building block provides 17 output parameters

  = Parameter name
  = Format

accountId STRING

Account ID

active BOOLEAN

Boolean indicating whether the custom metric is active

created DATE_TIME

Time the custom metric was created

id STRING

Custom metric ID

index INTEGER

Index of the custom metric

kind STRING

Kind value for a custom metric. Set to "analytics#customMetric". It is a read-only field

max_value STRING

Max value of custom metric

min_value STRING

Min value of custom metric

name STRING

Name of the custom metric

parentLink OBJECT

Parent link for the custom metric. Points to the property to which the custom metric belongs

parentLink.href STRING

Link to the property to which the custom metric belongs

parentLink.type STRING

Type of the parent link. Set to "analytics#webproperty"

scope STRING

Scope of the custom metric: HIT or PRODUCT

selfLink STRING

Link for the custom metric

type STRING

Data type of custom metric

updated DATE_TIME

Time the custom metric was last modified

webPropertyId STRING

Property ID