diff --git a/readme.md b/readme.md index 1f8f4cd..764ab0c 100644 --- a/readme.md +++ b/readme.md @@ -20,10 +20,12 @@ var Mixpanel = require('mixpanel'); // create an instance of the mixpanel client var mixpanel = Mixpanel.init(''); -// initialize mixpanel client configured to communicate over https -var mixpanel = Mixpanel.init('', { +// set the configuration for the mixpanel instance +//the values shown are the default configuration and the parameters can be used in the init method +mixpanel.set_config({ + debug: false, + host: 'api.mixpanel.com', protocol: 'https' -}); // track an event with optional properties mixpanel.track('my event', {