Code examples
Javascript example using jsonp
This Javascript snippet will work for logging user actions from the frontend for standard webapps. For Facebook apps, see our Facebook guide.
Additionally, you can call our Javascript API in a Flash SWF, please visit http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15683 for an example. If you would like to browse the uncompressed source, check out http://api.mixpanel.com/site_media/js/api/mixpanel_dev.js
