On this page
What this issue is
unavailable_after is an indexing directive. It says: after this date and time, do not show this page in search results. It was designed for pages with a natural end, such as a sale, an event or a limited offer.
The problem starts when the date passes but the page stays live, or when the directive is left on a page you reuse. Google treats the date as an instruction, so the page can be removed from results even though nothing looks wrong in the browser.
<meta name="robots" content="unavailable_after: 2024-12-31T23:59:59+00:00">
<meta name="googlebot" content="unavailable_after: 31 Dec 2024 23:59:59 GMT">X-Robots-Tag: unavailable_after: 2024-12-31T23:59:59+00:00Why it costs you leads or sales
A page that leaves the index stops getting organic visits. If it is a service page, a product page or a landing page, the leads and sales that came through it stop too. Links to it from other sites also lose most of their search value.
The cause is easy to miss. The page loads, forms work and ads can still point to it. Only organic traffic falls, and often weeks after the date passed, because Google needs to recrawl the page before it acts.
Day 0
A seasonal page is published with unavailable_after set to the end of the campaign.
Campaign end
The date passes. The page is kept live and reused for next season's offer.
Next recrawl
Google reads the past date and drops the page from results.
Weeks later
Organic leads fall. Nothing is visibly broken on the site.
After the fix
The directive is removed and reindexing is requested. The page returns over days or weeks.
Example: illustrative numbers showing organic visits falling after the date passes and recovering after the fix.
How to check if your site has it
Start with a page that lost organic traffic. Check both the HTML and the HTTP headers, because the directive can sit in either place.
Inspect the URL in Search Console
Open Search Console, paste the URL into the top bar and read the result. Look for a status like 'Excluded by noindex tag' or 'Page is not indexed'. Then open 'View crawled page' to see the HTML and HTTP response Google received.
Search the page source
Open the page, use View Source and search for
unavailable_after,robotsandgooglebot. Check the date in the content value.Check response headers
In browser DevTools, open the Network tab, reload, click the first request and read the response headers. Look for
X-Robots-Tag. You can also run the curl command below.Compare the date with today
If the date is in the past, the directive is the likely reason the page left search.
curl -sI https://example.com/your-page | grep -i x-robots-tag
curl -s https://example.com/your-page | grep -i -E 'unavailable_after|name="robots"|name="googlebot"'How to fix it
Decide first whether the page should still be found. If yes, remove the directive or move the date far into the future. If the page is truly finished, leave the directive and consider redirecting or retiring the page cleanly.
- Search resultPage dropped from results
- Landing pageNo organic visits
- Form or checkoutFewer submissions
- Lead or saleLower volume
The directive removes the page from search, so every step after it loses visitors.
Check your SEO plugin
In Yoast SEO, Rank Math or similar, open the page's advanced or robots settings and look for custom robots directives. Clear any
unavailable_aftervalue and save.Check theme and code
Search the theme's header.php, functions.php and any snippets plugin for
unavailable_afterand thewp_robotsfilter. Remove the directive.Clear caches
Purge page and server caches so Google receives the updated HTML.
Search theme files
Go to Online Store > Themes > Edit code and search for
unavailable_after. Check theme.liquid and any template or snippet files. Remove the tag.Check apps
If an SEO app manages robots tags, open its settings for the page and clear the directive.
Look for injected tags
Search your container for a Custom HTML tag or variable that adds a robots meta tag with
unavailable_after. Remove it and publish a new version.
Check custom code
Open Page settings > Custom code (inside the head tag) and Project settings > Custom code. Delete any robots meta tag containing
unavailable_after, then publish.
Check advanced SEO
In the page's SEO settings, open Advanced SEO > Custom meta tags and remove any robots tag with
unavailable_after. Publish the site.
Check code injection
Open the page settings > Advanced > Page header code injection, and Settings > Advanced > Code injection. Remove the robots meta tag and save.
Remove the meta tag
Delete the
unavailable_aftermeta tag from the page template, or set a future date if the end date is real.Remove the header
Search your server config for
X-Robots-Tag. In Apache or nginx, remove theunavailable_aftervalue from the matching rule, then reload the server.
Before
- Robots tag contains unavailable_after with a date in the past
- Page leaves Google's results
- Organic leads fall
After
- Directive removed, or date set in the future for a real end date
- Page is eligible for indexing again
- Organic visits recover after a recrawl
How to confirm it's fixed
- View Source and the response headers no longer show
unavailable_after, or show a future date - No conflicting robots meta tag or header remains
- Search Console URL Inspection > Test live URL shows the page as indexable
- You clicked Request indexing for the page
- The page appears for a site: search or in the Pages report after a few days
Recovery is not instant. Google has to recrawl the page, so it can take days or longer. Requesting indexing helps but does not guarantee a time.
How to prevent it happening again
- Use
unavailable_afteronly on pages that really end, and note the date in your content calendar - Review expiring dates a week before they pass
- Do not clone old campaign pages without checking their robots settings
- Keep robots directives in one place, such as one SEO plugin, instead of plugin, theme and server at once
- Check the Pages report in Search Console monthly for new exclusions
- Crawl your site periodically with an SEO crawler and filter for the robots directive column
How FunnelGuard handles this
FunnelGuard does not check for this yet. An unavailable_after date check is a possible future addition, but today it is not part of the product.
What FunnelGuard does do is run your real customer journeys, such as lead forms, checkouts and booking buttons, on a schedule, and check the steps, the tracking hits and whether test leads arrive. That tells you if the journey works once visitors arrive. It does not tell you whether Google still lists the page.
To watch for this issue, use Search Console's Pages report and URL Inspection on your key pages, and run a site crawler that reports robots meta tags and X-Robots-Tag headers. Re-check any page with a campaign end date. A free FunnelGuard read-only website audit is also available, but do not treat it as a check for this directive.
The page works for people who have the link, but search no longer sends visitors to it.
Questions people ask
What does unavailable_after do?
It is a robots directive that tells Google to stop showing a page in search results after a given date and time. Before that date the page is indexed normally. You can set it in a robots meta tag or an X-Robots-Tag HTTP header.
Why did my page disappear from Google after a certain date?
One possible reason is an unavailable_after directive with a date that has passed. Check the page source and response headers for it. Search Console's URL Inspection tool also shows what Google found when it last crawled the page.
How do I remove the unavailable_after tag?
Delete the robots meta tag or the X-Robots-Tag header value that contains it. Look in your SEO plugin, theme files, code injection settings and server config. Then request indexing in Search Console.
Can I set a new future date instead of removing it?
Yes, if the page has a real end date. Update the date to a time in the future in the meta tag or header. If you want the page indexed long term, removing the directive is safer.
How long does it take to get back into Google after the fix?
It depends on how often Google recrawls the page. It can take days or longer. Using Request indexing in Search Console can speed it up, but there is no guaranteed time.
What date format should unavailable_after use?
Google accepts widely used formats such as ISO 8601 (2025-12-31T23:59:59+00:00) and RFC 850. Include a time zone so the end time is clear. An unreadable date may be ignored.
Is unavailable_after the same as noindex?
No. Noindex applies immediately, while unavailable_after applies only after the date. Once the date has passed, the effect is similar: the page is removed from search results.
Does FunnelGuard detect unavailable_after problems?
No. FunnelGuard does not check this yet. It tests your customer journeys, tracking and lead delivery, so use Search Console and a site crawler to watch for indexing directives.
Related issues
- SEO-026noindex meta tag on a money or landing pageFix guide
- SEO-027X-Robots-Tag: noindex HTTP header on a landing pageFix guide
- SEO-032Conflicting robots directives (index and noindex both present)Fix guide
- SEO-039Pages noindexed but still in the XML sitemapFix guide
- SEO-040Removal requested in Search Console's Removals tool and forgottenFix guide
- SEO-029noindex added sitewide by a CMS setting ('Discourage search engines' in WordPress)Fix guide