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

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.

Noindex Does Not Mean Immediate Removal: When you set a page to noindex through Velo, Google will not remove it from the index until Googlebot recrawls it and detects the noindex tag. For pages you need removed from the index urgently, use Google Search Console's URL Removal tool as a temporary measure while the Velo noindex propagates.

Implementation checklist for dynamic noindex rules

Avoid Accidental Mass Noindex: A bug in your Velo noindex condition logic could accidentally apply noindex to your entire dynamic page collection. Before deploying any Velo robots meta tag changes, test the condition carefully against at least 10 different collection items in preview mode and confirm that only the intended items are receiving noindex.

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.