Skip to content

Instantly share code, notes, and snippets.

@neekey
Created September 26, 2013 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neekey/6710844 to your computer and use it in GitHub Desktop.
Save neekey/6710844 to your computer and use it in GitHub Desktop.
var analytics = require('analytics-node');
analytics.init({
secret: '4ck4zvbtccun95rua8bh',
flushAt : 1
});
analytics.identify({
userId : Identity,
traits : {
}
});
analytics.track({
userId : Identity,
event : 'grunt',
properties : {
argv: process.argv,
repoInfo: {
URL: ABCConfig.repository.url,
author: ABCConfig.author.name,
email: ABCConfig.author.email
},
env: {
OS: process.platform
},
other: {
styleEngine: ABCConfig._kissy_cake.styleEngine
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment