Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions plugins/GoogleSearchConsole/v1/dataStreams/countryBreakdown.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "countryBreakdown",
"displayName": "Country breakdown",
"description": "Returns search performance metrics grouped by country",
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "post",
"errorHandling": {
"type": "default"
},
"paging": {
"mode": "none"
},
"expandInnerObjects": true,
"postBody": {
"startDate": "{{new Date(timeframe.start).toISOString().split('T')[0]}}",
"endDate": "{{new Date(timeframe.end).toISOString().split('T')[0]}}",
"dimensions": ["country"],
"rowLimit": 2500,
"dataState": "final"
},
"postRequestScript": "postRequest/countryBreakdown.js",
"getArgs": [],
"headers": []
},
"metadata": [
{
"shape": [
"percent",
{
"thousandsSeparator": true,
"decimalPlaces": 2,
"asZeroToOne": true
}
],
"name": "CTR"
},
{
"pattern": ".*"
}
],
"providesPluginDiagnostics": true,
"timeframes": true,
"tags": ["SEO", "Analytics"]
}
45 changes: 45 additions & 0 deletions plugins/GoogleSearchConsole/v1/dataStreams/deviceBreakdown.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "deviceBreakdown",
"displayName": "Device breakdown",
"description": "Returns search performance metrics grouped by device type",
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "post",
"errorHandling": {
"type": "default"
},
"paging": {
"mode": "none"
},
"expandInnerObjects": true,
"postBody": {
"startDate": "{{new Date(timeframe.start).toISOString().split('T')[0]}}",
"endDate": "{{new Date(timeframe.end).toISOString().split('T')[0]}}",
"dimensions": ["device"],
"rowLimit": 2500,
"dataState": "final"
},
"postRequestScript": "postRequest/deviceBreakdown.js",
"getArgs": [],
"headers": []
},
"metadata": [
{
"shape": [
"percent",
{
"thousandsSeparator": true,
"decimalPlaces": 2,
"asZeroToOne": true
}
],
"name": "CTR"
},
{
"pattern": ".*"
}
],
"providesPluginDiagnostics": true,
"timeframes": true,
"tags": ["SEO", "Analytics"]
}
58 changes: 58 additions & 0 deletions plugins/GoogleSearchConsole/v1/dataStreams/pageDistribution.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"name": "pageDistribution",
"displayName": "Page distribution",
"description": "Returns a distribution of queries by search ranking position for the selected page",
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "post",
"errorHandling": {
"type": "default"
},
"paging": {
"mode": "none"
},
"expandInnerObjects": true,
"getArgs": [],
"headers": [],
"postBody": {
"startDate": "{{new Date(timeframe.start).toISOString().split('T')[0]}}",
"endDate": "{{new Date(timeframe.end).toISOString().split('T')[0]}}",
"dimensions": [
"query"
],
"dimensionFilterGroups": [
{
"filters": [
{
"dimension": "page",
"operator": "equals",
"expression": "{{scope?.[0]?.name}}"
}
]
}
],
"rowLimit": 2500
},
"postRequestScript": "postRequest/pageDistribution.js"
},
"providesPluginDiagnostics": true,
"timeframes": true,
"tags": ["SEO", "Analytics"],
"ui": [
{
"name": "scope",
"objectLimit": 1,
"label": "Scope",
"type": "objects",
"matches": {
"sourceType": {
"type": "equals",
"value": "page"
}
},
"validation": {
"required": true
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"name": "pagePerformanceOverTime",
"displayName": "Page performance over time",
"description": "Returns daily clicks, impressions and CTR trends for the selected page",
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "post",
"errorHandling": {
"type": "default"
},
"paging": {
"mode": "none"
},
"expandInnerObjects": true,
"postBody": {
"startDate": "{{new Date(timeframe.start).toISOString().split('T')[0]}}",
"endDate": "{{new Date(timeframe.end).toISOString().split('T')[0]}}",
"dimensions": ["date"],
"dimensionFilterGroups": [
{
"filters": [
{
"dimension": "page",
"operator": "equals",
"expression": "{{scope?.[0]?.name}}"
}
]
}
],
"rowLimit": 2500
},
"postRequestScript": "postRequest/pagePerformanceOverTime.js",
"getArgs": [],
"headers": []
},
"providesPluginDiagnostics": true,
"timeframes": true,
"tags": ["SEO", "Analytics"],
"metadata": [
{
"shape": [
"percent",
{
"thousandsSeparator": true,
"decimalPlaces": 2,
"asZeroToOne": true
}
],
"name": "CTR"
},
{
"pattern": ".*"
}
],
Comment thread
clarkd marked this conversation as resolved.
"ui": [
{
"name": "scope",
"objectLimit": 1,
"label": "Scope",
"type": "objects",
"matches": {
"sourceType": {
"type": "equals",
"value": "page"
}
},
"validation": {
"required": true
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"name": "pagePerformanceSummary",
"displayName": "Page performance summary",
"description": "Returns performance metrics for a given page",
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "post",
"errorHandling": {
"type": "default"
},
"paging": {
"mode": "none"
},
"expandInnerObjects": true,
"getArgs": [],
"headers": [],
"postBody": {
"startDate": "{{new Date(timeframe.start).toISOString().split('T')[0]}}",
"endDate": "{{new Date(timeframe.end).toISOString().split('T')[0]}}",
"dimensions": ["page"],
"dimensionFilterGroups": [
{
"filters": [
{
"dimension": "page",
"operator": "equals",
"expression": "{{scope?.[0]?.name}}"
}
]
}
],
"rowLimit": 2500
},
"postRequestScript": "postRequest/pagePerformanceSummary.js"
},
Comment thread
coderabbitai[bot] marked this conversation as resolved.
"providesPluginDiagnostics": true,
"timeframes": true,
"tags": ["SEO", "Analytics"],
"metadata": [
{
"shape": [
"percent",
{
"thousandsSeparator": true,
"decimalPlaces": 2,
"asZeroToOne": true
}
],
"name": "CTR"
},
{
"pattern": ".*"
}
],
"ui": [
{
"name": "scope",
"objectLimit": 1,
"label": "Scope",
"type": "objects",
"matches": {
"sourceType": {
"type": "equals",
"value": "page"
}
},
"validation": {
"required": true
}
}
]
}
30 changes: 30 additions & 0 deletions plugins/GoogleSearchConsole/v1/dataStreams/pageUrls.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "pageUrls",
Comment thread
clarkd marked this conversation as resolved.
"displayName": "Page URLs",
"description": "Returns a list of URLs with impressions in the last year",
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "post",
"errorHandling": {
"type": "default"
},
"paging": {
"mode": "none"
},
"expandInnerObjects": true,
"postBody": {
"startDate": "{{new Date(Date.now() - 365 * 24 * 60 * 60 * 1000).toISOString().split('T')[0]}}",
"endDate": "{{new Date().toISOString().split('T')[0]}}",
"dimensions": [
"page"
],
"rowLimit": 5000
},
Comment thread
clarkd marked this conversation as resolved.
"postRequestScript": "postRequest/pageUrls.js",
"getArgs": [],
"headers": []
},
"timeframes": false,
"providesPluginDiagnostics": true,
"tags": ["SEO", "Analytics"]
}
44 changes: 44 additions & 0 deletions plugins/GoogleSearchConsole/v1/dataStreams/pages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "pages",
"displayName": "Pages",
"description": "Returns a complete list of pages with performance metrics",
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "post",
"errorHandling": {
"type": "default"
},
"paging": {
"mode": "none"
},
"expandInnerObjects": true,
"postBody": {
"startDate": "{{new Date(timeframe.start).toISOString().split('T')[0]}}",
"endDate": "{{new Date(timeframe.end).toISOString().split('T')[0]}}",
"dimensions": ["page"],
"rowLimit": 5000
},
"postRequestScript": "postRequest/pages.js",
"getArgs": [],
"headers": []
},
"metadata": [
{
"shape": [
"percent",
{
"thousandsSeparator": true,
"decimalPlaces": 2,
"asZeroToOne": true
}
],
"name": "CTR"
},
{
"pattern": ".*"
}
],
"providesPluginDiagnostics": true,
"timeframes": true,
"tags": ["SEO", "Analytics"]
}
Loading
Loading