Skip to content

Commit

Permalink
Update privacy-friendly-tracking.mdx (#512)
Browse files Browse the repository at this point in the history
included
setUseIpAddressForGeolocation(useIpAddressForGeolocation)
for React Native

Co-authored-by: ishamehramixpanel <[email protected]>
  • Loading branch information
xyn1nja and ishamehramixpanel authored Sep 11, 2023
1 parent b7acb0b commit dd49fa6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pages/docs/tracking/how-tos/privacy-friendly-tracking.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ MixpanelAPI mixpanelOptOutDefault = MixpanelAPI.getInstance(context, YOUR API TO
## Disabling Geolocation
Mixpanel's Web and Mobile libraries use IP address to enrich events with geographic information like city, country, and region. You can disable this using the following configuration options in each of our SDKs:

<Tabs items={['Javascript', 'Objective-C', 'Swift', 'Android']}>
<Tabs items={['Javascript', 'Objective-C', 'Swift', 'Android', 'React Native']}>
<Tab>
```javascript Javascript
mixpanel.init(\"YOUR_TOKEN\", {'ip': false})
mixpanel.init("YOUR_TOKEN", {"ip": false})
```
</Tab>
<Tab>
Expand All @@ -81,6 +81,11 @@ Mixpanel.initialize(token: "MIXPANEL_TOKEN", useIPAddressForGeoLocation: false)
<meta-data android:name="com.mixpanel.android.MPConfig.UseIpAddressForGeolocation" android:value="false" />
```
</Tab>
<Tab>
```reactnative React Native
setUseIpAddressForGeolocation(false)
```
</Tab>
</Tabs>

## Anonymizing Users
Expand Down

1 comment on commit dd49fa6

@vercel
Copy link

@vercel vercel bot commented on dd49fa6 Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./

docs-git-main-mixpanel.vercel.app
docs-mixpanel.vercel.app
docs.mixpanel.com
help.mixpanel.com

Please sign in to comment.