SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How do I prevent Analytics.js from collecting IP addresses?

Question

How can I prevent Analytics.js from collecting a user’s IP address in my events?
 

Product

Twilio Segment

 

Environment

Segment Console
 

Answer

To prevent Analytics.js from collecting the user’s IP address, you must set  { context: { ip: "0.0.0.0" }} on each event call. This tells Segment not to record the IP for that specific request. The override applies only to the individual event, so you need to include it on every Page, Track, Identify, Group or Screen call where you want IP collection disabled.
 

Additional Information

Learn more about managing user's identification in Managing identity in Analytics.js.

Have more questions? Submit a request
Powered by Zendesk