# bpmn-js-tracking **Repository Path**: mirrors_bpmn-io/bpmn-js-tracking ## Basic Information - **Project Name**: bpmn-js-tracking - **Description**: A bpmn-js extension that provides a framework for tracking diagram editing events. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-07-19 - **Last Updated**: 2025-11-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # bpmn-js-tracking An extension for [bpmn-js](https://github.com/bpmn-io/bpmn-js) to track user interaction. ## Installation Install via [npm](http://npmjs.com/). ``` npm install bpmn-js-tracking ``` ## Usage Add as additional module to [bpmn-js](https://github.com/bpmn-io/bpmn-js). ```javascript 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: ```javascript import popupMenuTracking from 'bpmn-js-tracking/lib/features/popup-menu'; ``` ## Tracked events ### Context pad events | Event Name | Structure | | :--- | :--- | | `contextPad.trigger`| | ### Element templates events | Event Name | Structure | | :--- | :--- | | `elementTemplates.select`| | | `elementTemplates.update`| | | `elementTemplates.remove`| | | `elementTemplates.unlink`| | ### Modeling events | Event Name | Structure | | :--- | :--- | | `modeling.appendElement`| | | `modeling.createElements`| | | `modeling.replaceElement`| | ### Palette events | Event Name | Structure | | :--- | :--- | | `palette.trigger`| | ### Popup menu events | Event Name | Structure | | :--- | :--- | | `popupMenu.open`| | | `popupMenu.trigger`| | ### Selection events | Event Name | Structure | | :--- | :--- | | `selection.select`| |