Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding support to supply time in case of asynchronous event processing

  • Loading branch information...
commit ee6503fbbf0ac7ff77fa050693eac8b99a861ee5 1 parent 6f59b72
@kenperkins authored
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,
Please sign in to comment.
Something went wrong with that request. Please try again.