Created
February 6, 2012 17:14
-
-
Save beezee/1753421 to your computer and use it in GitHub Desktop.
max-results returns empty result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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