Skip to content

Instantly share code, notes, and snippets.

@beezee
Created February 6, 2012 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beezee/1753421 to your computer and use it in GitHub Desktop.
Save beezee/1753421 to your computer and use it in GitHub Desktop.
max-results returns empty result
var mainQuery = {
'ids': 'FILL_THIS_IN',
'start-date': '2012-01-19',
'end-date': '2012-02-05'
'dimensions': 'ga:pageTitle,ga:hostName,ga:pagePath,ga:date',
'metrics': 'ga:pageviews,ga:visits,ga:timeOnSite',
'sort': '-ga:pageviews',
'max-results': 100000
};
var GA = new ga.GA({user:'email', password:'password'});
GA.login(function(err, token) {
GA.get(gaQuery, function(err, entries) {
console.log(entries);
});
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment