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.
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.