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.
analytics-client
Advanced tools
Client part of analytics services used at balena.
npm install --save analytics-client
URL query parameters tool.
import { AnalyticsUrlParams } from 'analytics-client';
const urlParamsHandler = new AnalyticsUrlParams(mixpanel);
urlParamsHandler.consumeUrlParameters(window.location.search);
const signupUrl = '/signup?' + urlParamsHandler.getDeviceIdsQueryString();
UI experiments definition.
import { createClient, LocalExperiment } from 'analytics-client';
const client = createClient({projectName: 'my-project'});
type Variation = 'modal' | 'sidebar-left' | 'sidebar-right';
const experiment = new LocalExperiment<Variation>('WelcomeUI', client)
.define('modal', 50)
.define('sidebar-left', 25)
.define('sidebar-right', 25);
switch (experiment.engage(client.deviceId())) {
case 'modal':
showModal();
break;
// ...
}
Tracking a page view.
import { createClient, WebTracker, createWebTracker } from 'analytics-client';
const client = createClient({ projectName: 'my-project' });
createWebTracker(client).trackPageView();
Load the script from unpkg CDN (replacing {version}
with an actual version you need to use):
<script src="https://unpkg.com/analytics-client@{version}/dist/bundle.js"></script>
Then use the analyticsClient
variable:
const urlParamsHandler = new analyticsClient.AnalyticsUrlParams();
v0.8.0
FAQs
Convenient builders to compose analytics tools
The npm package analytics-client receives a total of 2,431 weekly downloads. As such, analytics-client popularity was classified as popular.
We found that analytics-client 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.