Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2 from kenperkins/master

Adding support to supply timestamp -- Thanks Ken Perkins!
  • Loading branch information...
commit e9017e2a1407b7f6332fdfd093537d831766128d 2 parents 6f59b72 + 170e0f7
@carlsverre carlsverre authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/mixpanel-node.js
View
4 lib/mixpanel-node.js
@@ -90,8 +90,8 @@ 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,
'properties' : properties
Please sign in to comment.
Something went wrong with that request. Please try again.