ganalytics (version 0.10.7)

Segment: Segment

Description

Define a segment for use in a query's segment list.

Usage

Segment(object, ...)

# S4 method for numeric Segment(object)

# S4 method for character Segment(object)

# S4 method for ANY Segment(object, ...)

# S4 method for `NULL` Segment(object)

# S4 method for gaUserSegment Segment(object)

Arguments

object

A segment or other object that can be coerced into a segment, including dynamic segments, built-in and/or custom segments by their ID.

...

Other segment conditions, filters or filter lists to include in the segment's definition (ANDed)

Value

An object belonging to the .gaSegment superclass.

Methods (by class)

  • numeric: Interpret the supplied numeric value as a segment ID.

  • character: Interpret the supplied character value as a segment ID.

  • ANY: Create a non-sequential segment using the supplied expressions.

  • NULL: returns NULL

  • gaUserSegment: Return the segment ID of the supplied GA Management API user segment.

See Also

Other dynamic segment functions: DynSegment, Exclude, Include, IsNegated, PerHit, PerProduct, PerSession, PerUser, ScopeLevel, SegmentConditionFilter, Segments