ga_aw_filter: Create a filter for use within App+Web filter expressions

Description Usage Arguments Details

View source: R/app_web_functions.R

Description

Used within ga_aw_filter_expr

Usage

1
2
3
4
5
6
7
8
ga_aw_filter(
  field,
  value,
  operation = c("EXACT", "BEGINS_WITH", "ENDS_WITH", "CONTAINS", "FULL_REGEXP",
    "PARTIAL_REGEXP", "EQUAL", "LESS_THAN", "LESS_THAN_OR_EQUAL", "GREATER_THAN",
    "GREATER_THAN_OR_EQUAL"),
  caseSensitive = TRUE
)

Arguments

field

The dimension or metric field name

value

The value - filter type is based on what class of object

operation

How the filter operates on field with value

caseSensitive

For character based value filters

Details

Ensure your value is of the right R class for the type of filter you desire.

For numerics also make sure to specify integer or float for metrics e.g. 1L vs 1.00

Ensure operation is valid for the type of field you are passing:

string filters: "EXACT","BEGINS_WITH","ENDS_WITH","CONTAINS","FULL_REGEXP", "PARTIAL_REGEXP"

numeric filters: "EQUAL", "LESS_THAN", "LESS_THAN_OR_EQUAL", "GREATER_THAN", "GREATER_THAN_OR_EQUAL")


MarkEdmondson1234/googleAnalyticsR_public documentation built on Nov. 21, 2020, 4:40 a.m.