I would like to provide the mixpanel.js with a custom url endpoint to submit the events and metric to. I need to do that for two reasons;
1. users of my app can be behind a FW or a proxy, and I'd like the stats to be sent to the app backend instead. From the backend I can forward the stats to mixpanel.
2. I'd like to perfrom some filtering and enrichment on the backend side
Best answer by raja
Hi, you can redefine the
api_host to a custom value when you
init() the Mixpanel JS SDK. See links below