mirror of
https://github.com/plausible/analytics.git
synced 2024-11-30 00:58:54 +03:00
6b8ed12567
This commit fixes a bug where fetching Google Search Console keywords raised a FunctionClauseError. This was introduced in #2046. This commit also adds test coverage.
34 lines
1.4 KiB
JSON
34 lines
1.4 KiB
JSON
[
|
|
{
|
|
"request": {
|
|
"body": "{\"dimensionFilterGroups\":{},\"dimensions\":[\"query\"],\"endDate\":\"2022-01-05\",\"rowLimit\":5,\"startDate\":\"2022-01-01\"}",
|
|
"headers": {
|
|
"Authorization": "Bearer 123"
|
|
},
|
|
"method": "post",
|
|
"options": [],
|
|
"request_body": "",
|
|
"url": "https://www.googleapis.com/webmasters/v3/sites/sc-domain%3Adummy.test/searchAnalytics/query"
|
|
},
|
|
"response": {
|
|
"binary": false,
|
|
"body": "{\"rows\":[{\"keys\":[\"keyword1\",\"keyword2\"],\"clicks\":25.0,\"impressions\":50.0,\"ctr\":0.3,\"position\":2.0},{\"keys\":[\"keyword3\",\"keyword4\"],\"clicks\":15.0,\"impressions\":25.0,\"ctr\":0.5,\"position\":4.0}],\"responseAggregationType\":\"auto\"}",
|
|
"headers": {
|
|
"vary": "X-Origin",
|
|
"content-type": "application/json; charset=UTF-8",
|
|
"date": "Wed, 10 Aug 2022 14:55:07 GMT",
|
|
"server": "ESF",
|
|
"cache-control": "private",
|
|
"x-xss-protection": "0",
|
|
"x-frame-options": "SAMEORIGIN",
|
|
"x-content-type-options": "nosniff",
|
|
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"",
|
|
"accept-ranges": "none",
|
|
"transfer-encoding": "chunked"
|
|
},
|
|
"status_code": 200,
|
|
"type": "ok"
|
|
}
|
|
}
|
|
]
|