Flex UI Telemetry SDK
npm install @twilio/flex-ui-telemetry> ⚠️ Important Note:
>
>- This package is for Twilio internal use only and is not officially supported.
>
>- This package works only inside the Flex UI window where the iframe with the Segment AnalyticsJS + custom JS snippets exist which helps isolate the Flex Segment Analytics instance.
bash
npm install @twilio/flex-ui-telemetry
`$3
`javascript
import FlexTelemetry from '@twilio/flex-ui-telemetry'
const analytics = new FlexTelemetry({
// common properties that you need to send with every event
// override the existing common properties that is supported by the sdk
pluginVersion: '1.0.0',
pluginName: 'plib-dialpad-conference-addon'
});
`$3
`javascript
analytics.page("Plugin Library Home", pageProperties, segmentOptions, callBack);
`$3
`javascript
analytics.track("Plugin Installation Start", eventProperties, segmentOptions, callBack);
`
$3
`javascript
analytics.identify(userId, traits, segmentOptions, callBack);
`
$3
`javascript
analytics.group(groupId, traits, segmentOptions, callBack);
``