analytics-react-native icon indicating copy to clipboard operation
analytics-react-native copied to clipboard

Settings CDN proxy url

Open teejteej opened this issue 2 years ago • 3 comments

The analytics-js library supports setting a proxy not only for tracking, but also for the Settings CDN url. Is there support for this in the analytics-react-native library as well?

Or is there some other way around this? For example, using an invalid writeKey, and then always supplying defaultSettings? That wouldn't be the nicest way around it though.

Thanks!

teejteej avatar Apr 15 '23 11:04 teejteej

Hi @teejteej thanks for reaching out. Can I ask what your use-case is for this? We are not against it, just trying to get more context as we haven't had requests for this in react native quite yet. Thanks!

alanjcharles avatar Apr 19 '23 17:04 alanjcharles

The main case for us would be GDPR related. We want to proxy any call (API and Settings CDN) made to Segment, and remove the end-user IP in the process.

teejteej avatar Apr 24 '23 15:04 teejteej

thanks @teejteej I'll follow up as soon as I can!

alanjcharles avatar Apr 27 '23 16:04 alanjcharles

Addressed in PR https://github.com/segmentio/analytics-react-native/pull/834

hvardhan-unth avatar Jun 10 '24 08:06 hvardhan-unth