Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #29 from Incisive/master

Fix for scientific notation metric results
  • Loading branch information...
commit 08488cbfd017946c9222df4e980146f79a92b24e 2 parents bdd91be + 7981593
@ncb000gt 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.