action | type | "string" |
---|
enum | "pageLoaded" |
"dwelledButAbandoned" |
|
---|
description | "`pageLoaded` happens once per page load. `dwelledButAbandoned` happens for the cases associated with `abandonmentAssociation`" |
---|
required | true |
---|
|
---|
popupEnabled | type | "boolean" |
---|
description | "Whether or not hovercards are enabled." |
---|
required | true |
---|
|
---|
abandonmentAssociation | type | "string" |
---|
enum | "ineligible" |
"abandonedEarly" |
|
---|
description | "If user hovers for 250ms or more yet abandons
`ineligible` - when hovercards is disabled or the link is ineligible for a preview
`abandonedEarly` - when hovercards is enabled and the link is eligible for a preview but the user abandoned before the preview rendered" |
---|
required | false |
---|
|
---|
linkInteractionToken | type | "string" |
---|
description | "One time token representing interaction with a link. Set only on `action` = `dwellButAbandoned`. Refer to the Popups schema." |
---|
required | false |
---|
|
---|
pageToken | type | "string" |
---|
description | "One time token per page load. Refer to the Popups schema." |
---|
required | true |
---|
|
---|
sessionToken | type | "string" |
---|
description | "Session token that survives across pages (mw.user.sessionId()), but not browser restarts, used in deterministic user bucketing. Refer to the Popups schema." |
---|
required | true |
---|
|
---|
api | required | false |
---|
type | "string" |
---|
enum | |
---|
description | "API endpoint consumed for preview data. `mwapi` for api.php or `restbase` for RESTbase. Set only when hovercards enabled." |
---|
|
---|