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

Node.js example project is out of date #223

Open
aheitzmann opened this issue Sep 5, 2023 · 2 comments
Open

Node.js example project is out of date #223

aheitzmann opened this issue Sep 5, 2023 · 2 comments

Comments

@aheitzmann
Copy link

https://github.com/mixpanel/mixpanel-node/blob/master/example.js doesn't align with the latest Node.js sdk. For instance, there is no set_config method on the Mixpanel object.

@tdumitrescu
Copy link
Member

set_config should still be there and usable:

/**
set_config(config)
---
Modifies the mixpanel config
config:object an object with properties to override in the
mixpanel client config
*/
metrics.set_config = function(config) {

tests are still running for it:

"is modified by set_config": function(test) {
test.equal(this.mixpanel.config.test, false, "default config has incorrect value for test");
this.mixpanel.set_config({ test: true });
test.equal(this.mixpanel.config.test, true, "set_config failed to modify the config");
test.done();
},

@aheitzmann
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants