Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for scientific notation metric results

Changed from parseInt to parseFloat
  • Loading branch information...
commit 7981593c58b7fb8067135d3dd5c53287a18cc7f9 1 parent bdd91be
Ryan Smith authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/ga.js
View
2  lib/ga.js
@@ -160,7 +160,7 @@ GA.prototype.get = function(options, cb) {
var object_metric = {};
for (var j=0; j<metrics.length; j++){
- object_metric[metrics[j].name] = parseInt(parsed_data.rows[i][metric_indexes[j]], 10);
+ object_metric[metrics[j].name] = parseFloat(parsed_data.rows[i][metric_indexes[j]]);
}
entry.metrics.push(object_metric);
Please sign in to comment.
Something went wrong with that request. Please try again.