1.3.2 • Published 9 months ago

@segment/analytics-react-native-plugin-advertising-id v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@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.

See Google Play Services documentation for advertisingId setup

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

1.3.2

9 months ago

1.3.1

1 year ago

1.3.0

1 year ago

1.3.0-beta.1

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago