C++ interface for mixpanel