You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"position": {
"description": "Structure that contains information on the location of the event origin, such as screen x,y coordinates, or the nth object out of 10 results.",
"type": "object",
"additionalProperties": true,
"oneOf": [
{
"type": "object",
"properties": {
"ordinal": {
"description": "The nth position of the document on the search results page.",
"type": "object",
"properties": {
"index": {
"description": "The position of the document. For grid layout this would be left to right, ignoring wrapping.",
"type": "integer",
"examples": [1, 3, 24]
}
},
"required": ["index"]
}
},
"required": ["ordinal"]
},
{
"type": "object",
"properties": {
"xy": {
"description": "The x,y coordinates on the screen for triggering an event.",
"$comment": "What about bounding boxes?",
"type": "object",
"properties": {
"x": {
"description": "The horizontal location on the page or screen of the event.",
"type": "number"
},
"y": {
"description": "The vertical location on the page or screen of the event.",
"type": "number"
}
},
"required": ["x", "y"]
}
},
"required": ["xy"]
}
]
}
Both ordinal and xy are defined as objects with properties. An example "position" conforming to the schema might look like
@russcam good catch! I am looking at this with @wrigleyDan and we are going back and forth on the value of index in the mix.. if you had other attributes you wanted at the ordinal level, then having attributed index is nice. But that is more complexity, an dyou could always stuff your special info around the concept of ordinal up in the event_attributes layer...
The events-mapping.json defines the
"position"
property asuser-behavior-insights/src/main/resources/events-mapping.json
Lines 18 to 29 in 0127188
An example
"position"
conforming to the mapping might look likeHowever, The event JSON schema defines the
"position"
ashttps://github.com/o19s/ubi/blob/412b2fffb9f27e12b73e5f436434c3ebab58241c/schema/1.2.0/event.schema.json#L145-L191
Both ordinal and xy are defined as objects with properties. An example
"position"
conforming to the schema might look likeWhich one of the events-mapping.json or event.schema.json should be considered correct?
The text was updated successfully, but these errors were encountered: