Description Usage Arguments Value References See Also Examples
This dataset represents all of the dimensions and metrics for the reporting API with their attributes. Attributes returned include UI name, description, segments support, etc.
1 | list_dimsmets(reportType = "ga")
|
reportType |
character. Report type. Allowed Values: "ga". Where "ga" corresponds to the Core Reporting API. |
A data.frame contains dimensions and metrics for a particular report type.
id |
Parameter name. |
type |
The type of column: |
dataType |
The type of data this column represents: |
group |
The dimensions/metrics group the column belongs to. |
status |
The status of the column: |
uiName |
The name/label of the column used in user interfaces (UI). |
description |
The full description of the column. |
allowedInSegments |
Indicates whether the column can be used in the segment query parameter. |
addedInApiVersion |
API version with this param was added. |
replacedBy |
The replacement column to use for a column with a |
calculation |
Only available for calculated metrics. This shows how the metric is calculated. |
minTemplateIndex |
Only available for templatized columns. This is the minimum index for the column. |
maxTemplateIndex |
Only available for templatized columns. This is the maximum index for the column. |
premiumMinTemplateIndex |
Only available for templatized columns. This is the minimum index for the column for premium properties. |
premiumMaxTemplateIndex |
Only available for templatized columns. This is the maximum index for the column for premium properties. |
Core Reporting API - Dimensions & Metrics Reference
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
ga_meta <- list_dimsmets("ga")
# a count of parameters types
table(ga_meta$type)
# parameters groups
table(ga_meta$group)
# get a deprecated parameters was replaced by
subset(ga_meta, status == "DEPRECATED", c(id, replacedBy))
# get a calculation metrics
subset(ga_meta, !is.na(calculation), c(id, calculation))
# get a not deprecated metrics from user group
subset(ga_meta, group == "User" & type == "METRIC" & status != "DEPRECATED", id)
# get parameters allowed in segments
subset(ga_meta, allowedInSegments, id)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.