koa-health / mixpanel_analytics

A dart wrapper on the mixpanel REST API to be used in Flutter applications.
https://pub.dev/packages/mixpanel_analytics
MIT License
19 stars 26 forks source link

[Feature] EU API Endpoint Support #25

Closed YannickAlex07 closed 3 years ago

YannickAlex07 commented 3 years ago

Overview:

Currently, there seems to be no way to configure the package to use the EU API endpoint. The documentation states that you need to use these endpoints to have full EU support for a project (also we double checked with the support that using the extra endpoints is indeed necessary and they confirmed it).

Fix:

For a fix we propose to add a new parameter to the constructor that allows for setting a custom URL for the endpoint. If no custom URL was given the default baseURL will be used. An advantage of this approach is, that the developer can quickly switch to any endpoint if Mixpanel adds new ones.