mirror of
https://github.com/plausible/analytics.git
synced 2024-11-30 11:13:22 +03:00
d31db86b49
* List all Google Analytics views during import This commit fixes a bug where different Google Analytics views with the same name and URI were not shown. This was caused because GA views were stored as a map, that naturally doesn't support duplicate keys. This change updates the GA views list to display view IDs, making it clearer to know what is being imported. The dropdown is now grouped by website URL. * Put Google Analytics API URLs in app env * Add controller test to GA view list
68 lines
2.3 KiB
JSON
68 lines
2.3 KiB
JSON
{
|
|
"kind": "analytics#profiles",
|
|
"username": "email@provider.test",
|
|
"totalResults": 2,
|
|
"startIndex": 1,
|
|
"itemsPerPage": 1000,
|
|
"items": [
|
|
{
|
|
"id": "57238190",
|
|
"kind": "analytics#profile",
|
|
"selfLink": "https://www.googleapis.com/analytics/v3/management/accounts/61782930/webproperties/UA-1625528-17/profiles/57238190",
|
|
"accountId": "61782930",
|
|
"webPropertyId": "UA-61782930-17",
|
|
"internalWebPropertyId": "53451925",
|
|
"name": "one.test",
|
|
"currency": "USD",
|
|
"timezone": "Europe/London",
|
|
"websiteUrl": "http://one.test/",
|
|
"type": "WEB",
|
|
"permissions": {
|
|
"effective": [
|
|
"READ_AND_ANALYZE"
|
|
]
|
|
},
|
|
"created": "2011-12-25T15:16:53.069Z",
|
|
"updated": "2012-07-26T09:45:03.811Z",
|
|
"eCommerceTracking": false,
|
|
"parentLink": {
|
|
"type": "analytics#webproperty",
|
|
"href": "https://www.googleapis.com/analytics/v3/management/accounts/61782930/webproperties/UA-1625528-17"
|
|
},
|
|
"childLink": {
|
|
"type": "analytics#goals",
|
|
"href": "https://www.googleapis.com/analytics/v3/management/accounts/61782930/webproperties/UA-1625528-17/profiles/57238190/goals"
|
|
}
|
|
},
|
|
{
|
|
"id": "54460083",
|
|
"kind": "analytics#profile",
|
|
"selfLink": "https://www.googleapis.com/analytics/v3/management/accounts/61782930/webproperties/UA-1625528-18/profiles/54460083",
|
|
"accountId": "61782930",
|
|
"webPropertyId": "UA-61782930-18",
|
|
"internalWebPropertyId": "53597744",
|
|
"name": "two.test",
|
|
"currency": "USD",
|
|
"timezone": "Europe/London",
|
|
"websiteUrl": "http://two.test/",
|
|
"type": "WEB",
|
|
"permissions": {
|
|
"effective": [
|
|
"READ_AND_ANALYZE"
|
|
]
|
|
},
|
|
"created": "2011-12-31T19:14:11.434Z",
|
|
"updated": "2012-04-03T18:34:11.475Z",
|
|
"eCommerceTracking": false,
|
|
"parentLink": {
|
|
"type": "analytics#webproperty",
|
|
"href": "https://www.googleapis.com/analytics/v3/management/accounts/61782930/webproperties/UA-1625528-18"
|
|
},
|
|
"childLink": {
|
|
"type": "analytics#goals",
|
|
"href": "https://www.googleapis.com/analytics/v3/management/accounts/61782930/webproperties/UA-1625528-18/profiles/54460083/goals"
|
|
}
|
|
}
|
|
]
|
|
}
|