Learn R Programming

googleAnalyticsR (version 1.2.0)

ga_custom_vars_list: List Custom Dimensions or Metrics

Description

List Custom Dimensions or Metrics

Usage

ga_custom_vars_list(
  accountId,
  webPropertyId,
  type = c("customDimensions", "customMetrics")
)

Value

Custom Metric or Dimension List

Arguments

accountId

Account Id

webPropertyId

Web Property Id

type

A customMetric or customDimension

Details

This function lists all the existing custom dimensions or metrics for the web property.

See Also

Other custom variable functions: ga_custom_vars(), ga_custom_vars_create(), ga_custom_vars_patch()

Examples

Run this code

if (FALSE) {
library(googleAnalyticsR)
ga_auth()

ga_custom_vars_list(54019251, webPropertyId = "UA-54019251-4", type = "customDimensions")

ga_custom_vars_list(54019251, webPropertyId = "UA-54019251-4", type = "customMetrics")

}

Run the code above in your browser using DataLab