ga_allowed_metric_dim: Create named list of allowed GA metrics/dimensions

View source: R/custom_dims_mets.R

ga_allowed_metric_dimR Documentation

Create named list of allowed GA metrics/dimensions

Description

Create named list of allowed GA metrics/dimensions

Usage

ga_allowed_metric_dim(
  type = c("METRIC", "DIMENSION"),
  subType = c("all", "segment", "cohort"),
  callAPI = FALSE
)

Arguments

type

Type of parameter to create

subType

to restrict to only those in this type

callAPI

This will update the meta table (Requires online authorization)

This is useful to expand goalXCompletions to all the possibilities, as well as restricting to those that variables that work with your API call.

Use internal meta table, but you have option to update to the latest version.

Value

A named list of parameters for use in API calls


MarkEdmondson1234/googleAnalyticsR_public documentation built on Sept. 7, 2024, 6:27 a.m.