Skip to content

Commit bc16fbe

Browse files
authored
Merge pull request #6235 from segmentio/fix-ipv6-confusion
Clarify ipv6 docs
2 parents d9f4447 + be461cc commit bc16fbe

File tree

1 file changed

+4
-3
lines changed
  • src/connections/sources/catalog/libraries/website/javascript

1 file changed

+4
-3
lines changed

src/connections/sources/catalog/libraries/website/javascript/identity.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,14 @@ analytics.ready(function() {
218218
219219
Segment automatically collects the user's IP address for device-based (iOS, Android, Analytics.js and Xamarin) events.
220220
221-
You can pass a value for `options.context.ip` to prevent the Segment systems from recording the IP address for the request, as in the example below.
221+
> info "IPv6"
222+
> At the moment, Segment doesn't support automatically collecting IPv6 addresses.
223+
224+
You can manually set the IP by passing a value for `options.context.ip` to prevent the Segment systems from recording the IP address for the request, as in the example below.
222225
223226
```js
224227
analytics.track("Order Completed", {}, { context: { ip: "0.0.0.0" }});
225228
```
226229
227230
You must add this override to _every_ Track call to explicitly override IP collection. If you reset this trait in the context object, Segment defaults to the normal IP collection behavior.
228231
229-
> info "IPv6"
230-
> Segment doesn't support collecting IPv6 addresses.

0 commit comments

Comments
 (0)