
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@twilio-labs/docusaurus-plugin-segment
Advanced tools
Send Docusaurus page view events to Segment. This opens up your analytics possibilities to the over 300 different integrations that Segment provides.
npm install --save @twilio-labs/docusaurus-plugin-segment
Or, if you prefer Yarn:
yarn add @twilio-labs/docusaurus-plugin-segment
Accepted fields:
Name | Type | Default | Description |
---|---|---|---|
writeKey | string | Required | The Write Key for your Segment JavaScript source. |
trackLocalSearch | boolean | false | Whether to track searches made with docusaurus-search-local |
allowedInDev | boolean | false | Whether to allow tracking in development mode in addition to production. |
To find your write key:
plugins: [
[
"@twilio-labs/docusaurus-plugin-segment",
{
writeKey: "3EBOWfRPv8qwertyZXCvbnMAsD2f1g0H",
allowedInDev: false,
},
],
],
Beyond sending page views to Segment, this plugin also supports sending search queries made using the docusaurus-search-local plugin.
It also supports identifying users on your system, should you have identity, by inspecting a cookie named client_id
and expecting it to have the format of <unique id>|<email>
(a unique identifier and email address, separated by the pipe character).
This plugin is leveraging Segment's Analytics.js 2.0 JavaScript client (called a "source").
FAQs
Segment plugin for Docusaurus.
The npm package @twilio-labs/docusaurus-plugin-segment receives a total of 951 weekly downloads. As such, @twilio-labs/docusaurus-plugin-segment popularity was classified as not popular.
We found that @twilio-labs/docusaurus-plugin-segment demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.