Issue #106 · important
Issue 106
What is this issue?
This issue checks whether your pages have a properly configured <meta name="robots"> tag with specific directives that control how search engines display your content in search results.
A passing implementation includes a meta robots tag with the following recommended settings:
max-snippet:-1(no limit on snippet length)max-image-preview:large(allow large image thumbnails)max-video-preview:-1(no limit on video preview duration)
Example of correct implementation:
<meta
name="robots"
content="max-snippet:-1, max-image-preview:large, max-video-preview:-1"
/>
Without this tag, search engines may use default settings that could limit how your content appears in SERPs.
Why does it matter?
The meta robots tag directly impacts how your pages appear in search engine results pages (SERPs):
-
Rich snippets: The
max-snippetdirective controls how much text content can appear in search snippets. Setting it to-1allows search engines to show as much as they deem relevant. -
Visual appeal: The
max-image-preview:largedirective enables large thumbnail images next to your search results, which can significantly increase click-through rates. -
Video visibility: The
max-video-previewdirective controls whether video content can show preview clips in search results, helping video content stand out. -
CTR improvement: Properly configured meta robots tags can make your search listings more visually appealing and informative, leading to higher click-through rates.
Resolving this issue improves your SEO health score by ensuring your content has the best possible presentation in search results, which can lead to increased organic traffic.
How to fix it
Follow these steps to implement the meta robots tag correctly:
-
Add the meta tag to your HTML head section: Place the following line inside the
<head>section of your HTML document:<meta name="robots" content="max-snippet:-1, max-image-preview:large, max-video-preview:-1" /> -
For specific page types: You can adjust the values based on your needs:
- For pages where you want to limit snippets: Use
max-snippet:50(limits to 50 characters) - For pages with sensitive images: Use
max-image-preview:standardinstead oflarge - For pages without video: The
max-video-previewdirective won't have any effect
- For pages where you want to limit snippets: Use
-
Verify implementation: Use View Page Source or browser developer tools to confirm the tag appears correctly in the rendered HTML.
-
Test with search engines: Use Google Search Console's URL Inspection tool to see how Google interprets your robots meta directives.
Note: This tag should be present on all indexable pages of your website.
Examples
Example 1: Correct Implementation
Scenario: A properly configured page with meta robots tag.
Correct State (Passes):
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="robots"
content="max-snippet:-1, max-image-preview:large, max-video-preview:-1"
/>
<title>Page Title</title>
</head>
Example 2: Missing Meta Robots Tag
Scenario: Page has no meta robots tag.
Problematic State (Fails):
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Page Title</title>
</head>
Why it fails: Without the meta robots tag, search engines may use default settings that limit how your content appears in search results.
Corrected State (Passes):
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="robots"
content="max-snippet:-1, max-image-preview:large, max-video-preview:-1"
/>
<title>Page Title</title>
</head>
Example 3: Incomplete Meta Robots Tag
Scenario: Meta robots tag is present but missing required directives.
Problematic State (Fails):
<head>
<meta name="robots" content="max-snippet:-1" />
<title>Page Title</title>
</head>
Why it fails: Missing max-image-preview and max-video-preview directives, which may limit how images and videos appear in search results.
Corrected State (Passes):
<head>
<meta
name="robots"
content="max-snippet:-1, max-image-preview:large, max-video-preview:-1"
/>
<title>Page Title</title>
</head>
Example 4: Restrictive Meta Robots Settings
Scenario: Page uses restrictive settings that limit search result appearance.
Problematic State (Fails):
<head>
<meta
name="robots"
content="max-snippet:0, max-image-preview:none, max-video-preview:0"
/>
<title>Page Title</title>
</head>
Why it fails: These settings prevent search engines from showing snippets, images, and video previews, which can significantly reduce click-through rates.
Corrected State (Passes):
<head>
<meta
name="robots"
content="max-snippet:-1, max-image-preview:large, max-video-preview:-1"
/>
<title>Page Title</title>
</head>
How PixyScan detects this
PixyScan performs the following checks to detect this issue:
-
HTML parsing: The crawler extracts the
<head>section from the page's HTML content. -
Meta tag search: It looks for a
<meta>tag with the attributename="robots". -
Content validation: If the tag is found, PixyScan checks the
contentattribute for the presence of:max-snippetdirective (value can be-1or a number)max-image-previewdirective (value should belarge,standard, ornone)max-video-previewdirective (value can be-1or a number)
-
Pass/Fail determination:
- Passes: If all three directives are present in the meta robots tag content
- Fails: If the meta robots tag is missing, or if any of the three directives are missing
The detection focuses on whether the tag exists and contains the recommended directives, not on the specific values used.