Wix Velo robots meta tag control: dynamic noindex rules for page states
Module 66: Wix Velo & Dev Mode: Advanced SEO for Developers | Lesson 677 of 688 | 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.
How to Control Robots Meta Tags Dynamically with Wix Velo
Programmatic robots meta tag control allows you to apply noindex rules conditionally across your Wix collection pages without manually managing each page's SEO settings.
Implementation guide for dynamic noindex rules on Wix collection pages using Velo
- Open the Wix Editor with Dev Mode enabled and select the dynamic page you want to apply conditional noindex logic to.
- Open the page code file in the Velo sidebar and add: import wixData from 'wix-data'; and import { setMetaTags } from 'wix-seo'; at the top.
- Inside the $w.onReady function, retrieve the current item: const item = await wixData.getCurrentItem();
- Define your noindex condition based on the collection fields that determine whether a page should be indexed — for example: const shouldNoIndex = item.status === 'archived' || item.inStock === false;
- Add an if/else block: if shouldNoIndex is true, call setMetaTags with robots: noindex, nofollow; otherwise call it with robots: index, follow.
- Test the logic by previewing several items that should and should not receive noindex in the Wix Editor preview.
- Publish the changes to the live site.
- Use Google Search Console's URL Inspection tool to test the live URL of an item that should be noindexed and confirm the robots meta tag appears correctly in the page code.
- Test an item that should remain indexed to confirm it is not accidentally receiving noindex.
- Monitor the Coverage > Excluded section in Google Search Console over the following four weeks for any unexpected changes in the number of excluded pages.
- Set a quarterly calendar reminder to review and update the noindex conditions as your content strategy and collection structure evolve.
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.