How can I send data to Mixpanel over HTTPS instead of HTTP using the JavaScript library?

Send all data over HTTPS instead of HTTP via the JavaScript library by making a small addition to the Mixpanel JavaScript snippet. Simply add the following to the mixpanel.init() function:

mixpanel.init("your token",{api_host:"https://api.mixpanel.com"})

Related topic: Force the Mixpanel cookie to be secure.