Cohort class
Defines a cohort. A cohort is a group of users who share a common characteristic. For example, all users with the same acquisition date belong to the same cohort.
Constructors
- Cohort()
- Cohort.fromJson(Map _json)
Properties
- dateRange ↔ DateRange
-
This is used for
FIRST_VISIT_DATE
cohort, the cohort selects users whose first visit date is between start date and end date defined in the DateRange. The date ranges should be aligned for cohort requests. If the request containsga:cohortNthDay
it should be exactly one day long, ifga:cohortNthWeek
it should be aligned to the week boundary (starting at Sunday and ending Saturday), and forga:cohortNthMonth
the date range should be aligned to the month (starting at the first and ending on the last day of the month). For LTV requests there are no such restrictions. You do not need to supply a date range for thereportsRequest.dateRanges
field.read / write - hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- name ↔ String
-
A unique name for the cohort. If not defined name will be auto-generated
with values cohort_
1234...
.read / write - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- type ↔ String
-
Type of the cohort. The only supported type as of now is
FIRST_VISIT_DATE
. If this field is unspecified the cohort is treated asFIRST_VISIT_DATE
type cohort. Possible string values are: [...]read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toJson(
) → Map< String, Object> -
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited