Skip to content

Commit

Permalink
Merge pull request #2 from kenperkins/master
Browse files Browse the repository at this point in the history
Adding support to supply timestamp -- Thanks Ken Perkins!
  • Loading branch information
carlsverre committed Sep 27, 2011
2 parents 6f59b72 + 170e0f7 commit e9017e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mixpanel-node.js
Expand Up @@ -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
Expand Down

0 comments on commit e9017e2

Please sign in to comment.