Skip to content

Commit 2a33a02

Browse files
author
Niall Brennan
committed
add extra config for idfa
1 parent a84d42c commit 2a33a02

File tree

1 file changed

+10
-0
lines changed
  • src/connections/sources/catalog/libraries/mobile/react-native

1 file changed

+10
-0
lines changed

src/connections/sources/catalog/libraries/mobile/react-native/classic.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,16 @@ import analytics from '@segment/analytics-react-native';
506506
analytics.setIDFA("123");
507507
```
508508
509+
You will also need to set the `trackAdvertising` property to true in your configuration.
510+
511+
```java
512+
analytics.setup('YOUR_WRITE_KEY', {
513+
// ...
514+
ios:{
515+
trackAdvertising: true
516+
},
517+
})
518+
```
509519
510520
### Using a custom anonymousID
511521

0 commit comments

Comments
 (0)