Skip to content

Support for configurable API path

Choose a tag to compare

@tdumitrescu tdumitrescu released this 04 Dec 00:56
· 123 commits to master since this release

Configure when initializing the instance with the path option:

const mixpanel = Mixpanel.init(`YOUR TOKEN`, {
  host: `sweet-corporate-proxy:6000`,
  path: `/mixpanel`,
});

In the above example, tracking requests will go to https://sweet-corporate-proxy:6000/mixpanel/track.