Skip to content

Instantly share code, notes, and snippets.

@cougrimes
Created February 11, 2016 00:34
Show Gist options
  • Save cougrimes/3d528a5573e973902188 to your computer and use it in GitHub Desktop.
Save cougrimes/3d528a5573e973902188 to your computer and use it in GitHub Desktop.
{
"kind": "analytics#gaData",
"id": "https:\/\/www.googleapis.com\/analytics\/v3\/data\/ga?ids=ga:YYYYYYYYY&dimensions=ga:dimension1&metrics=ga:avgTimeOnPage&start-date=30daysAgo&end-date=yesterday",
"query": {
"start-date": "30daysAgo",
"end-date": "yesterday",
"ids": "ga:YYYYYYYYY",
"dimensions": "ga:dimension1",
"metrics": [
"ga:avgTimeOnPage"
],
"start-index": 1,
"max-results": 1000
},
"itemsPerPage": 1000,
"totalResults": 6,
"selfLink": "https:\/\/www.googleapis.com\/analytics\/v3\/data\/ga?ids=ga:YYYYYYYYY&dimensions=ga:dimension1&metrics=ga:avgTimeOnPage&start-date=30daysAgo&end-date=yesterday",
"profileInfo": {
"profileId": "YYYYYYYYY",
"accountId": "XXXXXXXX",
"webPropertyId": "UA-XXXXXXXX-1",
"internalWebPropertyId": "ZZZZZZZZZ",
"profileName": "Example for Demonstration",
"tableId": "ga:YYYYYYYYY"
},
"containsSampledData": false,
"columnHeaders": [
{
"name": "ga:dimension1",
"columnType": "DIMENSION",
"dataType": "STRING"
},
{
"name": "ga:avgTimeOnPage",
"columnType": "METRIC",
"dataType": "TIME"
}
],
"totalsForAllResults": {
"ga:avgTimeOnPage": "150.70717131474103"
},
"rows": [
[
"10454",
"269.9102564102564"
],
[
"10697",
"249.33333333333334"
],
[
"12161",
"200.5"
],
[
"15240",
"116.93548387096774"
],
[
"16653",
"226.53571428571428"
],
[
"7498",
"115.04347826086956"
]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment