Permalink
Browse files

Adding support to supply time in case of asynchronous event processing

  • Loading branch information...
1 parent 6f59b72 commit ee6503fbbf0ac7ff77fa050693eac8b99a861ee5 @kenperkins committed Aug 23, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/mixpanel-node.js
View
4 lib/mixpanel-node.js
@@ -90,7 +90,9 @@ var client = function(token) {
metrics.track = function(event, properties, callback) {
if (!properties) { properties = {}; }
if (!properties.token) { properties.token = metrics.token; }
- properties.time = get_unixtime();
+ if (!properties.time) { properties.time = get_unixtime(); }
+
+
var data = {
'event' : event,

0 comments on commit ee6503f

Please sign in to comment.