Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@segment/analytics-react-native-plugin-advertising-id
Advanced tools
The hassle-free way to add Segment analytics to your React-Native app.
EnrichmentPlugin
to collect advertisingId on Android
Add the package
yarn add @segment/analytics-react-native-plugin-advertising-id
This plugin requires a compileSdkVersion
of at least 19.
Follow the instructions for adding plugins on the main Analytics client:
In your code where you initialize the Analytics client call the .add(plugin)
method with an AdvertisingId
instance
import { createClient } from '@segment/analytics-react-native';
import { AdvertisingIdPlugin } from '@segment/analytics-react-native-plugin-advertising-id';
const segmentClient = createClient({
writeKey: 'SEGMENT_KEY'
});
//...
segmentClient.add({ plugin: new AdvertisingIdPlugin() });
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
The hassle-free way to add Segment analytics to your React-Native app.
We found that @segment/analytics-react-native-plugin-advertising-id demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 292 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 a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.