google_api_analytics_reporting v0.13.0 GoogleApi.AnalyticsReporting.V4.Model.Cohort View Source
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.
Attributes
dateRange
(type:GoogleApi.AnalyticsReporting.V4.Model.DateRange.t
, default:nil
) - This is used forFIRST_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.name
(type:String.t
, default:nil
) - A unique name for the cohort. If not defined name will be auto-generated with values cohort_[1234...].type
(type:String.t
, default:nil
) - Type of the cohort. The only supported type as of now isFIRST_VISIT_DATE
. If this field is unspecified the cohort is treated asFIRST_VISIT_DATE
type cohort.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Link to this type
t()
View Sourcet() :: %GoogleApi.AnalyticsReporting.V4.Model.Cohort{ dateRange: GoogleApi.AnalyticsReporting.V4.Model.DateRange.t(), name: String.t(), type: String.t() }
Link to this section Functions
Unwrap a decoded JSON object into its complex fields.