This web application event is intended for integration developers and can be used to build custom events. This event can be retrieved using the Retrieve event web service.
It is possible to trigger a custom_event.trigger event through:
- Options available in the Settings of various Design components (including the Attachments component, making it possible to track when users open or download attachments)
- The Trigger interface analytics events web service.
- The Trigger custom Analytics event JavaScript method in Custom components.
This event contains the following fields:
| Field | Description |
|---|---|
eventName |
Information about the custom name of the event. The string format accepts alphanumeric characters and the following special characters: _, -, and /. The maximum length of eventName is 100 characters. |
componentId |
This optional field contains information about the component which triggered the event. The string format accepts alphanumeric characters and the following special character: -. The maximum length of componentId is 100 characters. |
parameters |
This optional field contains additional information on the event. It is a key / value map both in string format. The string format for keys accepts alphanumeric characters and the following special characters: _ and -. The maximum length for keys is 100 characters. The string format for values accepts alphanumeric characters and the following special characters: -, _, /, ~, :, and #. Spaces are also supported. The number of accepted parameters is 20. |
page |
An object containing information about the displayed page. |
id |
The page's identifier. |
type |
The page's type. The type can be designedHomePage, designedPage, designedReaderPage, designedSearchPage, homePage, readerPage, searchPage, viewerPage. |
url |
The URL path used to access the page (including query parameters). |
name |
The page's name. |
language |
The language defined for the page if it is a designed page. |
Example:
[
{
"eventName": "MyCustomEventName",
"componentId": "button-contact1",
"page": {
"id": "ft/home",
"type": "homePage",
"url": "/",
"name": "home",
"language": "en-US"
}
}
]