Skip to main content

Get all key moments

GET 

/key-moments

Get a list of all the key moments

Request

Query Parameters

    paramsIO objectrequired

Responses

OK

Schema

  • Array [

  • audienceTracking boolean

    Indicates if the key moment is used for tracking audience

    audienceTrackingEditable boolean

    Indicates if audienceTracking can be enabled or disabled. In some cases, audienceTracking cannot be disabled. E.g. When a key moment has predictive conditions, audience will be tracked by default.

    conditionsData

    object

    Conditions upon which visitors will be included in the key moment

    firstLevel

    object[]

    First level conditions. Every level can have several conditions. E.g. If we set 'firstLevelOrOperators' = [true], 'firstLevel'=[{OrOperators:[false], conditions: [SKY_STATUS, DAY_NIGHT]}, {OrOperators:[true], conditions: [PAGE_TITLE, NEW_VISITORS]}]. The expression will be, (SKY_STATUS AND DAY_NIGHT) OR (PAGE_TITLE OR NEW_VISITORS)

  • Array [

  • conditions

    object[]

    Add conditions (see TargetingConditionIO) to define a segment. The more conditions you add, the more precise your segment will be.

  • Array [

  • oneOf

    Determines whether to include or exclude visitors based on session duration.

    htmlDescription string

    Html readable description of the targeting condition

    id int64

    Unique Id

    targetingType stringrequired

    Targeting condition type. According to this field it's necessary to add some additional fields

    Possible values: [PAGE_URL, PAGE_TITLE, LANDING_PAGE, ORIGIN, ORIGIN_TYPE, REFERRERS, NEW_VISITORS, BROWSER_LANGUAGE, GEOLOCATION, DEVICE_TYPE, SCREEN_DIMENSION, VISITOR_IP, AD_BLOCKER, PREVIOUS_PAGE, KEY_PAGES, PAGE_VIEWS, FIRST_VISIT, LAST_VISIT, ACTIVE_SESSION, TIME_SINCE_PAGE_LOAD, SAME_DAY_VISITS, VISITS, VISITS_BY_PAGE, INTERNAL_SEARCH_KEYWORDS, TABS_ON_SITE, HEAT_SLICE, SKY_STATUS, TEMPERATURE, DAY_NIGHT, FORECAST_SKY_STATUS, FORECAST_TEMPERATURE, DAY_OF_WEEK, TIME_RANGE, HOUR_MINUTE_RANGE, JS_CODE, COOKIE, EVENT, EXPLICIT_TRIGGER, BROWSER, OPERATING_SYSTEM, DOM_ELEMENT, MOUSE_OUT, TARGET_EXPERIMENT, TARGET_PERSONALIZATION, EXCLUSIVE_EXPERIMENT, CONVERSIONS, CUSTOM_DATUM, YSANCE_SEGMENT, YSANCE_ATTRIBUT, TEALIUM_BADGE, TEALIUM_AUDIENCE, PRICE_OF_DISPLAYED_PAGE, NUMBER_OF_VISITED_PAGES, VISITED_PAGES, SEGMENT, KEY_MOMENT, CUSTOM, SDK_LANGUAGE, VISITOR_CODE, EXCLUSIVE_FEATURE_FLAG, TARGET_FEATURE_FLAG, APPLICATION_VERSION]

    weight int32required

    Conditions of higher importance will have greater values. Default value: 1

    Example: 1
    count int32

    Count of time elapsed since session became active according to the 'unitOfTime'

    include boolean

    Indicates if visitors who matched this condition should be included or excluded from the segment. Default value: 'true'

    matchType string

    Indicates how the specified amount of time should match

    Possible values: [EQUAL, LOWER, GREATER]

    unitOfTime string

    Units of measurements that will be used to determine if sessions are active for the required duration

    Possible values: [SECOND, MINUTE, HOUR, DAY]

  • ]

  • orOperators boolean[]

    Array of booleans ("or"=true, "and"=false) for binding conditions of second level.

  • ]

  • firstLevelOrOperators boolean[]

    Array of booleans ("or"=true, "and"=false) for binding firstLevel outer conditions.

    createdBy int64

    Account Id of the key moment creator

    dateCreated date-time

    Date the key moment was created

    dateModified date-time

    Date the key moment was modified

    description string

    Description of the key moment

    Example: The key moment is for new A/B tests
    id int64

    Unique Id of the key moment

    isFavorite boolean

    Indicates whether the key moment is a favorite

    name stringrequired

    Name of the key moment

    Example: My Key Moment
    siteId int64required

    Unique Id of the site where the key moment was, or will be created.

    Example: 8372
  • ]

Loading...