Wix Velo robots meta tag control: dynamic noindex rules for page states
Module 66: Wix Velo & Dev Mode: Advanced SEO for Developers | Lesson 676 of 687 | 27 min read
By Michael Andrews, Wix SEO Expert UK
The robots meta tag controls whether individual pages should be indexed by search engines. On a static Wix page, you set this once in the page's SEO settings. But on dynamic pages driven by database collections, you often need to apply noindex conditionally — for example, indexing in-stock products but noindexing out-of-stock ones, or indexing published blog posts but noindexing draft or archived content. Wix Velo allows you to set robots meta tags programmatically based on any condition you define.
When Dynamic Noindex Rules Are Necessary
- E-commerce: noindex out-of-stock or discontinued product pages to avoid thin content
- Blog: noindex draft posts or posts marked as "private" in the collection
- Directories: noindex directory entries that do not meet a minimum content threshold
- Events: noindex past events that have expired and have no archival value
- User-generated content: conditionally noindex pages with very short or low-quality content
- A/B testing pages: noindex variant pages that should not compete with the original in search
Setting Robots Meta Tags Dynamically in Velo
// Dynamic page code — conditional noindex based on item status
import wixData from 'wix-data';
import { setMetaTags } from 'wix-seo';
$w.onReady(async function () {
const item = await wixData.getCurrentItem();
if (!item) return;
// Apply noindex to out-of-stock or archived items
const shouldNoIndex =
item.status === 'archived' ||
item.inStock === false ||
item.wordCount < 300;
if (shouldNoIndex) {
setMetaTags([
{ name: 'robots', content: 'noindex, nofollow' }
]);
} else {
// Explicit index for all indexable pages (good practice)
setMetaTags([
{ name: 'robots', content: 'index, follow' }
]);
}
});
Combining Dynamic Noindex with URL Exclusion in GSC
After implementing dynamic noindex rules in Velo, monitor the effect in Google Search Console's Coverage report. URLs that receive noindex through Velo will appear in the Excluded section under "Excluded by noindex tag" over time as Googlebot recrawls them. If you see URLs in the Excluded section that should be indexed, check your Velo condition logic for errors.
Implementation checklist for dynamic noindex rules
- Identify which conditions in your database collection should trigger noindex.
- Write the Velo condition logic and test it against several representative collection items.
- Publish the changes to the live Wix site.
- Use Google Search Console's URL Inspection tool to confirm the robots meta tag is being correctly applied to test URLs.
- Monitor the Coverage report over the following four weeks for changes in the Excluded count.
- Set up a monthly review to ensure the noindex logic still reflects your current content strategy.
This lesson on Wix Velo robots meta tag control: dynamic noindex rules for page states is part of Module 66: Wix Velo & Dev Mode: Advanced SEO for Developers in The Most Comprehensive Complete Wix SEO Course in the World (2026 Edition). Created by Michael Andrews, the UK's No.1 Wix SEO Expert with 14 years of hands-on experience, 750+ completed Wix SEO projects and 425+ verified five-star reviews.