michaelcarter / mixpanel-data-export-js

Mixpanel data export js
91 stars 38 forks source link

.engage broken ? #6

Closed mainpart closed 10 years ago

mainpart commented 10 years ago

Hello. Trying to use engage - as stated in docs it has no required params. All they are optional.

panel.engage({}, function(data) { console.log(data); });

Server replies with 400 code

mainpart commented 10 years ago

/engage does not support jsonp

http://stackoverflow.com/questions/14336594/call-mixpanel-using-jquery-ajax

michaelcarter commented 10 years ago

Thanks @mainpart, I've updated the readme and method to reflect this. It'll now throw a useful error if you try to use it in the browser. I'll get in touch with Mixpanel and see if there's a reason it's not supporting it.