# NOT RUN {
# }
# NOT RUN {
library(googleAnalyticsR)
ga_auth()
# create custom var
ga_custom_vars_create("my_custom_dim",
index = 15,
accountId = 54019251,
webPropertyId = "UA-54019251-4",
scope = "HIT",
active = FALSE)
# view custom dimension in list
ga_custom_vars_list(54019251, webPropertyId = "UA-54019251-4", type = "customDimensions")
# }
Run the code above in your browser using DataLab