In today's highly competitive online environment, it is particularly important to ensure that search engines can better understand your website content, so that it can stand out in search results.And JSON-LD structured data is the key tool to achieve this goal.AnQiCMS as an efficient and customizable enterprise-level content management system naturally understands this and provides the function to generate and customize Json-LD structured data.But generating is not enough, how to ensure that the data is correctly parsed and effectively utilized by search engines has become a problem that website operators must pay attention to.
Today, let's delve into how to verify the effectiveness of the Json-LD structured data generated by AnQiCMS or customized by you.
How to generate or customize Json-LD in AnQiCMS?
First, let's briefly review the support of AnQiCMS in the Json-LD aspect.According to the AnQiCMS documentation, when you enable the structured data feature in the background functionality, the system will automatically insert default Json-LD tags into the page, which contain the basic information of the website and help search engines initially understand the page.
However, for experienced operators, the default structured data may not fully meet the personalized needs. AnQiCMS provides powerful customization capabilities that you can use{% jsonLd %}Label, freely write Json-LD code in the template.
For example, if you want to customize the author and image information for an article, you can do it like this:
{% jsonLd %}
<script type="application/ld+json">
{
"author": "AnQiCMS",
"image": [
"https://en.anqicms.com/anqicms.png"
]
}
</script>
{% endjsonLd %}
The cleverness of this custom tag lies in the fact that it allows you to directly write a JSON object that conforms to the Json-LD syntax within the enclosed content.AnQiCMS will intelligently merge this custom data with the default data generated by the system.If your custom field conflicts with the default field, your custom value will override the default, which provides you with great flexibility.
However, there is a crucial premise: the fields you define must strictly comply with the Json-LD syntax specification and Schema.org conventions.Once the syntax is incorrect or the data structure does not meet the standards, your efforts may be in vain.Therefore, verifying the validity of Json-LD is an essential step after deploying structured data.
The importance of validating JSON-LD structured data
Validate JSON-LD structured data is not only to avoid technical errors, but also to ensure that your website can fully utilize the SEO advantages brought by structured data. Effective Json-LD can help search engines:
- Understand the content more accurately:The search engine can clearly identify the core entities (such as articles, products, comments, events, etc.) and their properties on the page to avoid misunderstandings.
- Get rich media search results (Rich Results):Valid structured data is the prerequisite for websites to obtain star ratings, product prices, inventory information, event dates, and other rich media search results.These results can significantly improve your visibility and click-through rate on search result pages.
- Improve user experience:Through rich media results, users can obtain more comprehensive information before clicking to enter the website, improving search efficiency and reducing unnecessary clicks.
- Avoid negative impacts:Incorrectly structured data will not bring any benefits, but may even lead to search engines ignoring your structured data, or, in extreme cases, causing negative reviews.
In summary, validation is the cornerstone of ensuring that structured data is 'usable' and 'useful'.
Common Json-LD validation tools and steps
Understood how AnQiCMS supports Json-LD and the importance of validation, let's move on to learning several practical validation tools and steps.
1. Google Rich Media Search Results Test (Rich Results Test) - Your preferred tool
As the world's largest search engine, Google provides a rich media search results testing tool (developers.google.com/search/docs/appearance/structured-dataIt is undoubtedly the preferred method for validating Json-LD.It not only checks for syntax errors, but also tells you if your structured data is eligible for Google's rich media search results.
Usage steps:
- Access Tool:Open the Google Rich Media Search Results Test Page.
- Enter information:You can choose two ways to test:
- URL:Enter the URL of the page on your AnQiCMS website that contains Json-LD. This is the most common and convenient method.
- code:If your Json-LD is custom written, you can also directly paste
<script type="application/ld+json">...</script>the content into the code box for testing.
- Run the test:Click the "Test URL" or "Run Test" button.
- Check the results:The tool will provide a detailed report immediately. Please pay attention to:
- "Valid" status:If it displays
- Warning information:A warning usually means that your data is valid, but may be missing some recommended properties that could limit its ability to obtain more advanced rich media results.Please optimize based on the warning content.
- Error message:An error means that your Json-LD has a syntax error or missing required attributes, which will cause Google to be unable to parse and use this part of the structured data.You must fix these errors.
- Preview:If the data is valid, the tool will also display a rich media preview of your page that may appear in search results, which helps you understand the effect intuitively.
2. Schema.org Markup Validator (Schema Markup Validator) - A more in-depth structure check
Schema.org is a standard organization for defining structured data, its official Markup Validator (validator.schema.orgCan provide more detailed, search engine-independent syntax and structure checks for structured data.If you want to ensure that your Json-LD strictly adheres to Schema.org specifications, this tool is very useful.
Usage steps:
- Access Tool:Open the Schema.org Markup Validator page.
- Enter information:Similarly, you can enter the URL or paste the Json-LD code directly.
- Run validation:Click the "Run Test" button.
- Analysis report:This tool lists all detected Schema.org entities and displays any warnings or errors.It will tell you the type, properties, and values of each entity.Its report usually focuses more on Schema specifications themselves rather than Google's rendering capabilities.
3. Browser Developer Tools - Quick Screening and Location
Before submitting Json-LD data to an online validator, you can also use the browser's built-in developer tools for a quick preliminary check.This can help you confirm that the Json-LD script exists on the page and that its JSON format is basically correct.
Usage steps:
- Open Page:Open a page containing Json-LD on your AnQiCMS website.
- Enable Developer Tools:
- In Chrome browser, right-click on any part of the page, select "Inspect".
- In Firefox browser, right-click on any position on the page and select "Inspect Element".
- View element:
- Switch to the "Elements" or "Inspector" tab.
- Use the search function (Ctrl+F or Cmd+F) to search
application/ld+json. You should be able to find one or more<script type="application/ld+json">. - Click this script tag to expand its content. You can browse the Json-LD structure roughly to confirm whether it is a valid JSON format (for example, are the quotes and commas correct).
- Check the console:Switch to the "Console" tab.If the JSON format of Json-LD has obvious syntax errors, the browser may report parsing errors here sometimes.This is just the most basic check, it cannot replace professional structured data validation.
Summary
AnQiCMS provides powerful content management and SEO optimization capabilities for website operators, with support for Json-LD structured data being one of its highlights. Whether you rely on the system to generate it by default or through{% jsonLd %}Custom tags, be sure to include the verification process in your workflow.Make full use of Google's rich media search results test and professional tools such as Schema.org Markup Validator, regularly check and optimize your structured data, which will be a strong boost to your better performance in search engines.
Frequently Asked Questions (FAQ)
Q1: My Json-LD is showing as 'valid' in the Google rich media search results test, why is the rich media result not appearing in the search results?
A1: Json-LD structured data "valid" is just one of the prerequisites for obtaining rich media search results, but it does not guarantee that it will always be displayed.Whether Google shows rich media results also depends on various factors, such as the quality and authority of the page content, the relevance of the page, the user's search intent, Google's real-time judgment of the algorithm, and other ranking signals.Sometimes, even if the data is completely valid, Google may use the user