Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@twilio/flex-ui-telemetry

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twilio/flex-ui-telemetry

Flex UI Telemetry SDK

  • 1.3.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
5.1K
decreased by-8.46%
Maintainers
0
Weekly downloads
 
Created
Source

Flex Telemetry SDK for UI

Overview

This package is a light-weight wrapper on Segment Analytics SDK combined with the integration of the iframe implementation in Hosted Flex to overcome the challenge of having multiple Segment Analytics instances on a single browser window.

⚠️ 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.

Usage

Installation

npm install @twilio/flex-ui-telemetry

Initialising the SDK

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'
});

Page

analytics.page("Plugin Library Home", pageProperties, segmentOptions, callBack);

Track

analytics.track("Plugin Installation Start", eventProperties, segmentOptions, callBack);

Identify

analytics.identify(userId, traits, segmentOptions, callBack);

Group

analytics.group(groupId, traits, segmentOptions, callBack);

FAQs

Package last updated on 15 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc