Top
Events for Elements
  • 11 Dec 2023
  • 1 Minute To Read
  • Dark
    Light
  • PDF

Events for Elements

  • Dark
    Light
  • PDF

Article Summary

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,

FullScreen

insights_full_screen

element_seen
You can track this element using elementName in combination with projectName.

{
  "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 using actionEventValue, that is, Continue! (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": "AppIntro",
  "deploymentVersion": "3",
  "language": "ang",
  "elementName": "AppIntro",
  "actionEventType": "close",
  "actionEventValue": "Continue",
  "deploymentName": "AppIntro Deployment"
}

Tooltip

Tooltip

  • element_seen
    You can track this element using elementName in combination with projectName.
{
  "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"
}


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.