We are using Amplitude via segment events, in device mode. We integrated segment to our front end we pages, and write with JavaScript and angular.
It seems that ad blockers are sometimes blocking xhr requests to api.amplitude.com.
We see that amplitude.js bundle is downloaded, but it fails to send events to amplitude backend.
We want to create proxy server for Amplitude, but we do not know how to configure the client side, as we have access to only analytics segment JS object, and not to amplitude object, or at least we do not know how to access the amplitude JS object.
Is it possible to access amplitude JS object when using Amplitude in segment device mode?