An opaque string that is used to uniquely identify the target HTML element. Uniqueness cannot be guaranteed by the library. It is the responsibility of the application developer to provide the elements with static and unique HTML id or custom attributes. The Experience Analytics library can then be configured to use either of these properties to uniquely identify the element. In the absence of these unique identifiers, the Experience Analytics library defaults to using the XPath as the id. An XPath works in most situations but cannot guarantee to uniquely identify the element.
Supported frameworks | Android, iOS, Experience Analytics UI Capture |
Path | <global>.<session>.<message>.target.id |
Description | Opaque string that is used to uniquely identify the target HTML element. |
Value | String |
Limitations | None |
Dependencies | Replay, cxOverstat, and step-based eventing all use the id |
Example
This example shows a Type 4 Control message with an id used for the target:
{
"messageVersion": "1.1.0.0",
"serialNumber": 2,
"sessions": [
{
"id": "ID13H56M10S772R0.955239302458247",
"startTime": 1343076970772,
"timezoneOffset": 420,
"messages": [
{
"type": 4,
"offset": 17329,
"screenviewOffset": 17327,
"count": 8,
"fromWeb": true,
"target": {
"id": "bi",
"idType": -1,
"name": "buttonInput",
"type": "INPUT",
"subType": "button",
"position": {...},
"prevState": {...},
"currState": {...},
"isParentLink": false
},
"event": {
"type": "click"
}
}],
"clientEnvironment": {...}
}
]
}