Google search consol schema Script code
Google search consol schema Script code
This schema represents Google Search Console data and includes two main sections: "performance" and "searchAppearance".
The "performance" section contains information about the website's performance in the search results. It includes properties such as "startDate" and "endDate" to specify the date range of the performance data and "metrics" to provide an array of metric data. Each metric has a "name" property indicating the metric's name and a "values" property containing an array of numerical values.
The "searchAppearance" section contains information about the appearance of the website in search results. It includes properties such as "startDate" and "endDate" to specify the date range of the search appearance data and "appearanceData" to provide an array of appearance data. Each appearance data object includes a "name" property indicating the search appearance type and a "count" property representing the count of appearances.
You can use this schema to validate and structure JSON data representing Google Search Console data. Feel free to customize or extend
<script type='application/ld+json'>
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Google Search Console Data",
"description": "Schema for representing Google Search Console data",
"type": "object",
"properties": {
"siteUrl": {
"type": "string",
"description": "The URL of the website"
},
"performance": {
"type": "object",
"description": "Performance data",
"properties": {
"startDate": {
"type": "string",
"format": "date",
"description": "The start date of the performance data"
},
"endDate": {
"type": "string",
"format": "date",
"description": "The end date of the performance data"
},
"metrics": {
"type": "array",
"description": "Metrics data",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the metric"
},
"values": {
"type": "array",
"description": "The values of the metric",
"items": {
"type": "number"
}
}
},
"required": ["name", "values"]
}
}
},
"required": ["startDate", "endDate", "metrics"]
},
"searchAppearance": {
"type": "object",
"description": "Search appearance data",
"properties": {
"startDate": {
"type": "string",
"format": "date",
"description": "The start date of the search appearance data"
},
"endDate": {
"type": "string",
"format": "date",
"description": "The end date of the search appearance data"
},
"appearanceData": {
"type": "array",
"description": "Data for different search appearances",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the search appearance"
},
"count": {
"type": "integer",
"description": "The count of appearances"
}
},
"required": ["name", "count"]
}
}
},
"required": ["startDate", "endDate", "appearanceData"]
}
},
"required": ["siteUrl", "performance", "searchAppearance"]
}
</script>
Comments
Post a Comment
Thanks for your Comments.