use a common model both for mixpanel / jsapi