factory method for mixpanelapi instantiation