Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@segment/analytics-react-native-plugin-advertising-id

Package Overview
Dependencies
Maintainers
287
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@segment/analytics-react-native-plugin-advertising-id

The hassle-free way to add Segment analytics to your React-Native app.

  • 1.3.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
287
Created
Source

@segment/analytics-react-native-plugin-advertising-id

EnrichmentPlugin to collect advertisingId on Android

Installation

Add the package

yarn add @segment/analytics-react-native-plugin-advertising-id

This plugin requires a compileSdkVersion of at least 19.

Usage

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() });

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Keywords

FAQs

Package last updated on 23 Oct 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc