
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
better-attribution
Advanced tools
Allows you to easily tracks & store first/last touch attribution in cookies to enable multi-touch attribution. Tracks UTMs, Facebook, Google Ads, and more automatically.
import { betterAttribution, DefaultQueryParams } from "better-attribution";
const attr = betterAttribution();
// Stores the current URL query params and referrer in a cross site cookie
attr.storeAttributionValues();
// JSON from the latest visit
const lastParams = attr.getLastTouch();
console.log(lastParams); // {referrer: 'facebook.com', fbclid: 'abc-123'}
// JSON from the first visit
const firstParams = attr.getFirstTouch();
console.log(lastParams); // {utm_term: 'first-visit-term', referrer: 'google.com'}
Features:
Default list of tracked query params (you can override this in the setup function):
Customization:
// All arguments are optional
const attr = betterAttribution({
// allows tracking of additional (or fewer) query params
queryParams: [...DefaultQueryParams, "custom_known_query_param"],
// allows prefixing the cookie w a custom string
cookiePrefix: "custom_prefix",
// allows setting the cookie w a custom domain
domain: "example_2.com",
});
npm i better-attribution
MIT
FAQs
Allows you to easily tracks & store first/last touch attribution in cookies to enable multi-touch attribution. Tracks UTMs, Facebook, Google Ads, and more automatically.
The npm package better-attribution receives a total of 79 weekly downloads. As such, better-attribution popularity was classified as not popular.
We found that better-attribution demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.