From 2a33a028dd7e73aaa2f779ecf57bf2a88adb1908 Mon Sep 17 00:00:00 2001 From: Niall Brennan Date: Wed, 6 Apr 2022 15:49:53 +0100 Subject: [PATCH 1/2] add extra config for idfa --- .../catalog/libraries/mobile/react-native/classic.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/connections/sources/catalog/libraries/mobile/react-native/classic.md b/src/connections/sources/catalog/libraries/mobile/react-native/classic.md index af5f7703f3..94e3cbea05 100644 --- a/src/connections/sources/catalog/libraries/mobile/react-native/classic.md +++ b/src/connections/sources/catalog/libraries/mobile/react-native/classic.md @@ -506,6 +506,16 @@ import analytics from '@segment/analytics-react-native'; analytics.setIDFA("123"); ``` +You will also need to set the `trackAdvertising` property to true in your configuration. + +```java +analytics.setup('YOUR_WRITE_KEY', { + // ... + ios:{ + trackAdvertising: true + }, +}) +``` ### Using a custom anonymousID From eab0938c9f5924c84e4e34f74881d6ef77b0da7d Mon Sep 17 00:00:00 2001 From: pwseg <86626706+pwseg@users.noreply.github.com> Date: Wed, 6 Apr 2022 11:34:25 -0500 Subject: [PATCH 2/2] Update classic.md --- .../sources/catalog/libraries/mobile/react-native/classic.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connections/sources/catalog/libraries/mobile/react-native/classic.md b/src/connections/sources/catalog/libraries/mobile/react-native/classic.md index 94e3cbea05..36a67f97b0 100644 --- a/src/connections/sources/catalog/libraries/mobile/react-native/classic.md +++ b/src/connections/sources/catalog/libraries/mobile/react-native/classic.md @@ -506,7 +506,7 @@ import analytics from '@segment/analytics-react-native'; analytics.setIDFA("123"); ``` -You will also need to set the `trackAdvertising` property to true in your configuration. +You will also need to set the `trackAdvertising` property to `true` in your configuration. ```java analytics.setup('YOUR_WRITE_KEY', {