From 211764038598b41ea4170108b134e972ca2e1ddb Mon Sep 17 00:00:00 2001 From: James J Potts IV Date: Wed, 30 May 2018 17:07:09 -0700 Subject: [PATCH 1/2] Update readme.md --- readme.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 1f8f4cd..be8dc0a 100644 --- a/readme.md +++ b/readme.md @@ -17,14 +17,17 @@ Quick Start // grab the Mixpanel factory 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('', { - protocol: 'https' }); +// 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', { distinct_id: 'some unique client id', From 3580a25a50fb68e401e1c85085f49bdb159ec311 Mon Sep 17 00:00:00 2001 From: James J Potts IV Date: Wed, 30 May 2018 17:09:33 -0700 Subject: [PATCH 2/2] Update readme.md with configuration parameters --- readme.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index be8dc0a..764ab0c 100644 --- a/readme.md +++ b/readme.md @@ -17,9 +17,8 @@ Quick Start // grab the Mixpanel factory var Mixpanel = require('mixpanel'); -// initialize mixpanel client configured to communicate over https -var mixpanel = Mixpanel.init('', { -}); +// create an instance of the mixpanel client +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