Struct google_analyticsreporting4::CohortGroup
source · pub struct CohortGroup {
pub cohorts: Option<Vec<Cohort>>,
pub lifetime_value: Option<bool>,
}Expand description
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" }
}]
}This type is not used in any activity, and only used as part of another schema.
Fields§
§cohorts: Option<Vec<Cohort>>The definition for the cohort.
lifetime_value: Option<bool>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:cohortNthWeekthestartDatein the cohort definition should be a Sunday and theendDateshould be the following Saturday, and forga:cohortNthMonth, thestartDateshould be the 1st of the month andendDateshould 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
viewIdmust be an app view ID
Trait Implementations§
source§impl Clone for CohortGroup
impl Clone for CohortGroup
source§fn clone(&self) -> CohortGroup
fn clone(&self) -> CohortGroup
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CohortGroup
impl Debug for CohortGroup
source§impl Default for CohortGroup
impl Default for CohortGroup
source§fn default() -> CohortGroup
fn default() -> CohortGroup
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CohortGroup
impl<'de> Deserialize<'de> for CohortGroup
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for CohortGroup
impl Serialize for CohortGroup
impl Part for CohortGroup
Auto Trait Implementations§
impl Freeze for CohortGroup
impl RefUnwindSafe for CohortGroup
impl Send for CohortGroup
impl Sync for CohortGroup
impl Unpin for CohortGroup
impl UnwindSafe for CohortGroup
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more