Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
bcp-analytics
Advanced tools
Install with yarn
yarn add bcp-analytics
Install with npm
npm install bcp-analytics
Start collecting page and copy events with Segment:
const BcpAnalytics = require("bcp-analytics");
new BcpAnalytics().registerSegment({ url: $SEGMENT_URL }).start();
Since the user ID can be anything you can define your own method of retrieving it. Simply set the get user id method so it can be used by this tool. Example:
const BcpAnalytics = require("bcp-analytics");
new BcpAnalytics()
.registerSegment({ url: $SEGMENT_URL })
.setGetUserId(async () => "my custom user id")
.start();
Manage the tracking of page and copy events by overwriting the default config. Example:
const BcpAnalytics = require("bcp-analytics");
new BcpAnalytics({
trackPages: true,
trackCopies: false,
debug: true,
})
.registerSegment({ url: $SEGMENT_URL })
.start();
By default opt in is enabled. To opt out simply add it in the constructor:
const BcpAnalytics = require("bcp-analytics");
new BcpAnalytics({
optOut: true,
})
.registerSegment({ url: $SEGMENT_URL })
.start();
or opt out anytime with
const BcpAnalytics = require("bcp-analytics");
const analytics = new BcpAnalytics()
.registerSegment({ url: $SEGMENT_URL })
.start();
// opt out
analytics.optOut();
// opt in again
analytics.optIn();
FAQs
## Installation
The npm package bcp-analytics receives a total of 6 weekly downloads. As such, bcp-analytics popularity was classified as not popular.
We found that bcp-analytics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.