Permalink
Browse files

Merge pull request #910 from definitionstudio/master

[iOS] GoogleAnalytics: handle empty 'value' arguments to trackEvent
  • Loading branch information...
2 parents 18f244c + 1be704b commit 8fb5ee32a1462afea6ed99ec983b1ed55c67cdd3 @devgeeks devgeeks committed Nov 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 iOS/GoogleAnalytics/GoogleAnalyticsPlugin.js
@@ -12,7 +12,7 @@ GoogleAnalyticsPlugin.prototype.trackEvent = function(category,action,label,valu
var options = {category:category,
action:action,
label:label,
- value:value};
+ value:isNaN(parseInt(value)) ? -1 : value};
cordova.exec("GoogleAnalyticsPlugin.trackEvent",options);
};

0 comments on commit 8fb5ee3

Please sign in to comment.