Class: Google::Apis::AnalyticsreportingV4::CohortGroup
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsreportingV4::CohortGroup
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/analyticsreporting_v4/classes.rb,
generated/google/apis/analyticsreporting_v4/representations.rb,
generated/google/apis/analyticsreporting_v4/representations.rb
Overview
Defines a cohort group. For example: "cohortGroup": "cohorts": [
"name": "
cohort 1", "type": "FIRST_VISIT_DATE", "dateRange": "startDate": "2015-08-01"
, "endDate": "2015-08-01"
,
"name": "cohort 2" "type": "FIRST_VISIT_DATE" "
dateRange": "startDate": "2015-07-01", "endDate": "2015-07-01"
]
Instance Attribute Summary collapse
-
#cohorts ⇒ Array<Google::Apis::AnalyticsreportingV4::Cohort>
The definition for the cohort.
-
#lifetime_value ⇒ Boolean
(also: #lifetime_value?)
Enable Life Time Value (LTV).
Instance Method Summary collapse
-
#initialize(**args) ⇒ CohortGroup
constructor
A new instance of CohortGroup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CohortGroup
Returns a new instance of CohortGroup.
228 229 230 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 228 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cohorts ⇒ Array<Google::Apis::AnalyticsreportingV4::Cohort>
The definition for the cohort.
Corresponds to the JSON property cohorts
203 204 205 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 203 def cohorts @cohorts end |
#lifetime_value ⇒ Boolean Also known as: lifetime_value?
Enable Life Time Value (LTV). LTV measures lifetime value for users acquired through different channels. Please see: Cohort Analysis and Lifetime Value If the value of lifetimeValue is false: - The metric values are similar to the values in the web interface cohort report.
- The cohort definition date ranges must be aligned to the calendar week and
month. i.e. while requesting
ga:cohortNthWeek
thestartDate
in the cohort definition should be a Sunday and theendDate
should be the following Saturday, and forga:cohortNthMonth
, thestartDate
should be the 1st of the month andendDate
should be the last day of the month. When the lifetimeValue is true: - The metric values will correspond to the values in the web interface LifeTime value report. - The Lifetime Value report shows you how user value (Revenue) and engagement (Appviews, Goal Completions, Sessions, and Session Duration) grow during the 90 days after a user is acquired. - The metrics are calculated as a cumulative average per user per the time increment. - The cohort definition date ranges need not be aligned to the calendar week
and month boundaries. - The
viewId
must be an app view ID Corresponds to the JSON propertylifetimeValue
225 226 227 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 225 def lifetime_value @lifetime_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
233 234 235 236 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 233 def update!(**args) @cohorts = args[:cohorts] if args.key?(:cohorts) @lifetime_value = args[:lifetime_value] if args.key?(:lifetime_value) end |