ExperimentUser: {
    carrier?: string;
    city?: string;
    cohort_ids?: string[];
    country?: string;
    device_brand?: string;
    device_id?: string;
    device_manufacturer?: string;
    device_model?: string;
    dma?: string;
    group_cohort_ids?: {
        [groupType: string]: {
            [groupName: string]: string[];
        };
    };
    group_properties?: {
        [groupType: string]: {
            [groupName: string]: {
                [propertyName: string]: string | number | boolean | (string | number | boolean)[];
            };
        };
    };
    groups?: {
        [groupType: string]: string[];
    };
    ip_address?: string;
    language?: string;
    library?: string;
    os?: string;
    platform?: string;
    region?: string;
    user_id?: string;
    user_properties?: {
        [propertyName: string]: string | number | boolean | (string | number | boolean)[];
    };
    version?: string;
}

Defines a user context for evaluation. device_id and user_id are used for identity resolution. All other predefined fields and user properties are used for rule based user targeting.

Type declaration

  • Optional carrier?: string

    Predefined field, must be manually provided

  • Optional city?: string

    Predefined field, must be manually provided

  • Optional cohort_ids?: string[]
  • Optional country?: string

    Predefined field, must be manually provided

  • Optional device_brand?: string

    Predefined field, must be manually provided

  • Optional device_id?: string

    Device ID for associating with an identity in Amplitude

  • Optional device_manufacturer?: string

    Predefined field, must be manually provided

  • Optional device_model?: string

    Predefined field, must be manually provided

  • Optional dma?: string

    Predefined field, must be manually provided

  • Optional group_cohort_ids?: {
        [groupType: string]: {
            [groupName: string]: string[];
        };
    }
    • [groupType: string]: {
          [groupName: string]: string[];
      }
      • [groupName: string]: string[]
  • Optional group_properties?: {
        [groupType: string]: {
            [groupName: string]: {
                [propertyName: string]: string | number | boolean | (string | number | boolean)[];
            };
        };
    }
    • [groupType: string]: {
          [groupName: string]: {
              [propertyName: string]: string | number | boolean | (string | number | boolean)[];
          };
      }
      • [groupName: string]: {
            [propertyName: string]: string | number | boolean | (string | number | boolean)[];
        }
        • [propertyName: string]: string | number | boolean | (string | number | boolean)[]
  • Optional groups?: {
        [groupType: string]: string[];
    }
    • [groupType: string]: string[]
  • Optional ip_address?: string

    Predefined field, must be manually provided

  • Optional language?: string

    Predefined field, must be manually provided

  • Optional library?: string

    Predefined field, auto populated, can be manually overridden

  • Optional os?: string

    Predefined field, must be manually provided

  • Optional platform?: string

    Predefined field, must be manually provided

  • Optional region?: string

    Predefined field, must be manually provided

  • Optional user_id?: string

    User ID for associating with an identity in Amplitude

  • Optional user_properties?: {
        [propertyName: string]: string | number | boolean | (string | number | boolean)[];
    }

    Custom user properties

    • [propertyName: string]: string | number | boolean | (string | number | boolean)[]
  • Optional version?: string

    Predefined field, must be manually provided