Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Conflicting robots directives (index and noindex): how to fix

SEO-032Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

Robots directives tell search engines whether to show a page in results (index or noindex) and whether to follow its links (follow or nofollow). A page can receive these instructions from several places at once: a <meta name="robots"> tag in the HTML, a tag aimed at one crawler such as googlebot, and an X-Robots-Tag HTTP header sent by the server.

Why it costs you leads or sales

A landing page, product page or service page that Google treats as noindex will not appear in search results. Organic visitors who would have filled in your form or bought never arrive, and nothing on the page itself looks broken. Because you can see an index tag when you check the source, the problem is easy to miss.

How a conflict removes a page from search
  1. Page publishedTheme prints index, follow
  2. Second source adds noindexPlugin, header or script
  3. Google drops the pageMost restrictive rule wins
  4. Organic visitsNo search traffic
  5. Leads and salesFewer form fills and orders

The page loads fine for visitors, but search never sends them.

Organic visits to an affected pageExample numbers
Organic visits to an affected page (example)Week 1: 400 visits per week; Week 2: 390 visits per week; Week 3: 220 visits per week; Week 4: 60 visits per week; Week 5: 10 visits per week01533074003902206010Week 1Week 2Week 3Week 4Week 5visits per week

Example: illustrative numbers showing traffic falling after the page is dropped from the index.

How to check if your site has it

Check every source, not just the page source. The meta tag you see may be only one of several.

Find all robots directives on a page
  1. Inspect the URL in Google Search Console

    Paste the URL into the URL Inspection tool. Look at Page indexing: messages like 'Excluded by noindex tag' or 'Page is not indexed: noindex' confirm Google sees a noindex. Use Test live URL to see the current state.

  2. Check the HTTP headers

    Run the command below, or open your browser's developer tools, Network tab, click the page request and read Response Headers. Look for X-Robots-Tag.

  3. Search the raw HTML for robots tags

    Use View Source (not Inspect) and search for 'robots' and 'googlebot'. Count how many tags there are and what each says.

  4. Compare with the rendered DOM

    In developer tools, Elements tab, search for 'robots'. A tag that appears here but not in View Source was added by JavaScript.

Check headers and meta tags from the command linebash
# Response headers (look for X-Robots-Tag)
curl -sI https://example.com/your-page/ | grep -i x-robots-tag

# Robots meta tags in the HTML
curl -s https://example.com/your-page/ | grep -i -o '<meta[^>]*name=["'"'"']\(robots\|googlebot\)[^>]*>'
Where conflicting directives usually come from
SourceHow to spot itTypical cause
Theme templateHard-coded meta robots in header fileOld theme code or a copied snippet
SEO pluginSecond tag in View SourcePlugin plus theme both printing a tag
Page-level settingPage marked noindex in editor or SEO panelLeft on from drafting
HTTP headerX-Robots-Tag in response headersServer, CDN or hosting rule
JavaScriptTag in rendered DOM onlyTag manager or script editing the head

How to fix it

The goal is one source of truth per page. Decide what the page should do, then remove every other directive that disagrees. For a page you want in search, the cleanest result is no robots tag at all, or a single index, follow tag.

Remove the conflicting directive
  1. Check the global setting

    Go to Settings > Reading and make sure 'Discourage search engines from indexing this site' is unticked.

  2. Check the page's SEO panel

    In your SEO plugin (such as Yoast SEO, Rank Math or All in One SEO), open the page's advanced or robots settings and set it to allow indexing.

  3. Look for a second source

    Temporarily switch to a default theme or disable plugins one by one, re-checking View Source each time, to find which one prints the extra tag. Remove hard-coded meta robots lines from header.php in a child theme.

One clean directive (or none at all)html
<!-- Good: a single tag. Omitting it entirely also means index, follow -->
<meta name="robots" content="index, follow">

<!-- Bad: two tags that disagree. Google applies noindex -->
<meta name="robots" content="index, follow">
<meta name="robots" content="noindex, nofollow">
Directives on a landing page

Conflict

  • Theme prints index, follow
  • Plugin adds noindex
  • Header may add a third rule
  • Google drops the page

Fixed

  • One source controls robots
  • Single index, follow tag or none
  • No X-Robots-Tag noindex
  • Page can be indexed again
Toggle the conflicting noindexInteractive
A second source adds noindex

noindex present

Leads or data lost

Google applies the most restrictive rule and the page is dropped from search results, even though an index tag is also present.

The visible index tag does not protect the page while a noindex exists anywhere.

How to confirm it's fixed

Confirmation checks
  • View Source shows one robots tag at most, and none says noindex
  • The rendered DOM shows the same, with no tag added by JavaScript
  • curl -sI shows no X-Robots-Tag: noindex header
  • URL Inspection > Test live URL shows the page is indexable
  • Click Request indexing for the page in Search Console
  • Re-check after a few days to see the status change to indexed

How to prevent it happening again

Prevention habits
  • Choose one owner for robots directives, such as your SEO plugin, and avoid hard-coding tags in the theme
  • Check robots tags and headers after theme changes, plugin installs, migrations and CDN rule updates
  • Keep staging noindex rules out of production deployments
  • Review the Page indexing report in Search Console for 'Excluded by noindex tag' on pages that should rank
  • Crawl your site with an SEO crawler that lists meta robots and X-Robots-Tag per URL, and review the results after releases
  • Keep a short list of your key landing pages and spot-check them monthly

How FunnelGuard handles this

FunnelGuard does not check for conflicting robots directives today. It is a possible future check, not a current feature, so it will not warn you if a page carries both index and noindex.

What FunnelGuard does do is run your real customer journeys on a schedule, such as lead forms, checkouts and booking buttons, and check each step, the tracking hits and whether test leads arrive. That tells you if the journey works once visitors are on the page, but not whether search engines can find the page in the first place.

Questions people ask

Which wins when a page has both index and noindex?

Noindex wins. Google combines all the robots directives it finds for a page and applies the most restrictive one, so a single noindex is enough to keep the page out of search results even if an index tag is also present.

Why is my page noindex when I set it to index?

Another source is probably adding noindex. Check the X-Robots-Tag HTTP header, a second meta robots tag from a plugin or theme, a page-level setting in your SEO plugin or CMS, and any JavaScript or tag manager script that edits the head.

How do I check for an X-Robots-Tag noindex header?

Run curl -sI followed by your page URL and look for an X-Robots-Tag line, or open your browser's developer tools, Network tab, select the page request and read the Response Headers. Google Search Console's URL Inspection tool also reports it.

Is having two robots meta tags on one page a problem?

It can be. Two tags that agree are usually harmless, but if they disagree Google applies the most restrictive instruction. It is best to keep a single tag, or none, so the outcome is predictable.

Do I need an index meta tag at all?

No. Pages are indexable by default, so you can leave the robots tag out entirely. Adding index, follow is optional and does not override a noindex from any other source.

How long does it take for a page to come back after removing noindex?

It depends on when Google recrawls the page. Use URL Inspection and Request indexing in Search Console to prompt a recrawl, then re-check the page's status over the following days. There is no guaranteed timeframe.

Can a tag manager cause a noindex conflict?

Yes. A Custom HTML tag in Google Tag Manager can insert or change a robots meta tag after the page loads. Check the rendered DOM in developer tools and review your container for tags that edit the head.

Does FunnelGuard detect conflicting robots directives?

Not currently. It is a possible future check. FunnelGuard monitors journeys, tracking and lead delivery, so for robots directives use Search Console and an SEO crawler.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.