Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed example.js pointing to the wrong location for the lib

  • Loading branch information...
commit e01002e4ba6dd09397c9743ff4611f0c6d00a18c 1 parent 096c80a
@carlsverre carlsverre authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 example.js
View
7 example.js
@@ -1,8 +1,8 @@
// grab the Mixpanel factory
-var Mixpanel = require('../lib/mixpanel-node');
+var Mixpanel = require('./lib/mixpanel-node');
// create an instance of the mixpanel client
-var mixpanel = Mixpanel.init('6fd9434dba686db2d1ab66b4462a3a67');
+var mixpanel = Mixpanel.init('962dbca1bbc54701d402c94d65b4a20e');
mixpanel.set_config({ debug: true });
// track an event with optional properties
@@ -33,8 +33,7 @@ mixpanel.people.increment("billybob", "games_played");
mixpanel.people.increment("billybob", "points", 15);
// increment multiple properties
-mixpanel.people.increment("billybob", {"points": 10, "games_played":
- 1});
+mixpanel.people.increment("billybob", {"points": 10, "games_played": 1});
// delete a user
mixpanel.people.delete_user("billybob");
Please sign in to comment.
Something went wrong with that request. Please try again.