- 05 Sep 2024
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Events for Elements
- Updated On 05 Sep 2024
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Events are generated whenever a user interacts with any Whatfix Mobile content. These events can then be used to generate Insights about the engagement rate.
The following are the events which are generated when a project with a single element is run on an app,
element_seen
You can track this element usingelementName
in combination withprojectName
.
{
"id": "723e944a-defa-45e4-8f17-b08f20369b82",
"timestamp": "2021-07-02T01:37:17Z",
"eventName": "element_seen",
"projectName": "AppIntro",
"deploymentVersion": "3",
"language": "ang",
"elementName": "AppIntro",
"deploymentName": "AppIntro Deployment"
}
element_action
Whenever the user clicks the Next button, you can track the interaction of this element usingactionEventValue
, that is, Continue! (name of the button). You can use the combination ofprojectName
andelementName
to identify this element uniquely.
{
"id": "5aca67c6-6b51-4eb6-b298-788595bbe60b",
"timestamp": "2021-07-02T01:38:34Z",
"eventName": "element_action",
"projectName": "AppIntro",
"deploymentVersion": "3",
"language": "ang",
"elementName": "AppIntro",
"actionEventType": "close",
"actionEventValue": "Continue",
"deploymentName": "AppIntro Deployment"
}
element_seen
You can track this element usingelementName
in combination withprojectName
.
{
"id": "723e944a-defa-45e4-8f17-b08f20369b54",
"timestamp": "2021-07-02T01:37:17Z",
"eventName": "element_seen",
"projectName": "Feature Discovery",
"deploymentVersion": "4",
"language": "ang",
"elementName": "Feature Discovery",
"deploymentName": "Feature Discovery Deployment"
}
element_action
There are two types of event properties that are fired based on the user interaction.
Whenever the user clicks the highlighted area, you can track the interaction of this element using actionEventType
as anchor_click
. You can use the combination of projectName
and elementName
to identify this element uniquely.
{
"id": "5aca67c6-6b51-4eb6-b298-788595bbe60b",
"timestamp": "2021-07-02T01:38:34Z",
"eventName": "element_action",
"projectName": "Feature Discovery",
"deploymentVersion": "4",
"language": "ang",
"elementName": "Feature Discovery",
"actionEventType": "anchor_click",
"deploymentName": "Feature Discovery Deployment"
}
Whenever the user clicks the Shop Now or Cancel button, you can track the interaction of this element using actionEventValue
, that is, BuyNow (name of the button). You can use the combination of projectName
and elementName
to identify this element uniquely.
{
"id": "5aca67c6-6b51-4eb6-b298-788595bbe60b",
"timestamp": "2021-07-02T01:38:34Z",
"eventName": "element_action",
"projectName": "Feature Discovery",
"deploymentVersion": "3",
"language": "ang",
"elementName": "Feature Discovery",
"actionEventType": "close",
"actionEventValue": "BuyNow", // or Cancel
"deploymentName": "Feature Discovery Deployment"
}