An extension for bpmn-js to track user interaction.
Install via npm.
npm install bpmn-js-tracking
Add as additional module to bpmn-js.
import {
BpmnJSTracking,
BpmnJSTrackingModules
} from 'bpmn-js-tracking';
const bpmnJS = new BpmnJS({
additionalModules: [
BpmnJSTracking,
BpmnJSTrackingModules
]
})
const bpmnJsTracking = bpmnJS.get('bpmnJSTracking');
bpmnJsTracking.on('tracking.enabled', function(event) {
// opt into tracking platform
});
bpmnJsTracking.on('tracking.event', function(event) {
// send to tracking platform
// event: { name, data }
});
bpmnJsTracking.on('tracking.disabled', function(event) {
// opt out of tracking platform
});
Alternatively, you can import specific tracking modules:
import popupMenuTracking from 'bpmn-js-tracking/lib/features/popup-menu';
Event Name |
Structure |
contextPad.trigger |
- entryId
- entryGroup
- entryTitle
- selection
- triggerType: ["click", "drag", "keyboard"]
|
Event Name |
Structure |
elementTemplates.select |
|
elementTemplates.update |
|
elementTemplates.remove |
|
elementTemplates.unlink |
|
Event Name |
Structure |
modeling.appendElement |
|
modeling.createElements |
|
modeling.replaceElement |
|
Event Name |
Structure |
palette.trigger |
- entryId
- entryGroup
- entryTitle
- selection
- triggerType: ["click", "drag", "keyboard"]
|
Popup menu events
Event Name |
Structure |
popupMenu.open |
|
popupMenu.trigger |
- entryId
- entryGroup
- entryLabel
- triggerType: ["click", "drag", "keyboard"]
|
Event Name |
Structure |
selection.select |
|