
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
@segment/analytics.js-video-plugins
Advanced tools
Add automatic Segment event tracking to popular video players.
Add automatic Segment event tracking to popular video players.
Video plugins are built to hook into the lifecycle API of their corresponding video player and translate those events in to Segment events that adhere to the Video Spec.
Each individual plugin is stored in the /plugins
directory. Plugins are built into a single module using Webpack and output as a single commonJs module into the /dist
directory. This file is then bundled into analytics.js via analytics.js-private using Browserify. Each plugin is accessible at runtime at window.analytics.plugins
.
If you're interested in contributing to the development of an existing player plugin or creating a new one, please reference our contribution guidelines.
To release, simply merge your changes into master on Github, pull them down locally into your master branch, and run yarn release <major | minor | patch>
. This will automatically update package.json
with the appropriate version bump, build a new dist file, push the updates to GitHub, and publish to npm.
Next, follow the instructions to release analytics.js (note: you'll be bumping the version of @segment/analytics.js-video-plugins
in that repo to the version you just published.
FAQs
Add automatic Segment event tracking to popular video players.
The npm package @segment/analytics.js-video-plugins receives a total of 438,154 weekly downloads. As such, @segment/analytics.js-video-plugins popularity was classified as popular.
We found that @segment/analytics.js-video-plugins demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 128 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.