Skip to content
Browse files

remove requirement for the optional parameter dimensions

  • Loading branch information...
1 parent 0f72520 commit 5a5c9340012fa1a4c6a3256163079b3dece7d1e7 @joshvermaire joshvermaire committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/ga.js
View
6 lib/ga.js
@@ -150,8 +150,10 @@ GA.prototype.get = function(options, cb) {
entry.metrics.push(object_metric);
var object_dimension = {};
- object_dimension[dimension.name] = parsed_data.rows[i][dimension_index];
- entry.dimensions.push(object_dimension);
+ if (dimension) {
+ object_dimension[dimension.name] = parsed_data.rows[i][dimension_index];
+ entry.dimensions.push(object_dimension);
+ }
self.emit('entry', entry);
entries.push(entry);

0 comments on commit 5a5c934

Please sign in to comment.
Something went wrong with that request. Please try again.