Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ability to specify strict mode using config #195

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update docs to use strict mode
jbwyme authored Mar 4, 2022
commit b61363bafc49cfabbf2774186781c6c0d2aac26d
2 changes: 1 addition & 1 deletion example.js
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ var Mixpanel = require('./lib/mixpanel-node');

// create an instance of the mixpanel client
var mixpanel = Mixpanel.init('962dbca1bbc54701d402c94d65b4a20e');
mixpanel.set_config({ debug: true });
mixpanel.set_config({ debug: true, strict: true });

// track an event with optional properties
mixpanel.track("my event", {
5 changes: 3 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -18,11 +18,12 @@ Quick Start
var Mixpanel = require('mixpanel');

// create an instance of the mixpanel client
var mixpanel = Mixpanel.init('<YOUR_TOKEN>');
var mixpanel = Mixpanel.init('<YOUR_TOKEN>', {strict: true});

// initialize mixpanel client configured to communicate over https
var mixpanel = Mixpanel.init('<YOUR_TOKEN>', {
protocol: 'https'
protocol: 'https',
strict: true,
});

// track an event with optional properties