How to prevent filter tags from appearing in Google search results dawn theme

Topic summary

Problem: Google is indexing Shopify filter/tag URLs instead of primary collection pages, causing tag-based results to appear in search.

Likely cause: Shopify creates filter/tag parameter URLs that are being crawled and indexed.

Proposed fixes:

  • Block indexing of tag URLs via robots.txt (e.g., Disallow: /collections/*?*tag=).
  • Ensure canonical tags point to the main collection URL ().
  • Update Google Search Console (submit sitemap, request recrawl) and use the Removals tool for already indexed tag URLs.
  • Review internal links (menus, breadcrumbs) to avoid linking to filtered/tagged URLs.
  • Add a noindex meta tag when filters/tags are active ({% if current_tags %}{% endif %}).

Current status and questions:

  • The robots.txt directive has been added by the site owner.
  • Clarifications requested on where to place canonical and noindex code in the Dawn theme (they have collection.json, not collection.liquid).
  • They can’t find breadcrumbs and ask where to locate the “filter tag” pages; they believe the issue stems from the collection page.

Outcome: Guidance provided; implementation is partial. Discussion remains open with unresolved theme-file placement and page-location questions.

Summarized with AI on December 12. AI used: gpt-5.

Hi @houseofviraasi , thank you for posting here!

The issue of filter tags appearing in Google search results instead of your collections likely occurs because Shopify generates URLs for your filter tags, and Google is indexing these URLs. This can happen due to a lack of control over how search engines are crawling and indexing these tag URLs. Here’s how you can fix it:

1. Prevent Filter Tags from Being Indexed

You can use the robots.txt.liquid file in Shopify to block search engines from indexing these tag URLs. To do this:

  1. Go to Online Store > Themes > Actions > Edit Code.

  2. Search for the robots.txt.liquid file.

  3. Add a directive to disallow the tag URLs:

    User-agent: *
    Disallow: /collections/*?*tag=
    
  4. Save the file.

This tells search engines not to index URLs containing ?tag=.

2. Use Canonical Tags

Ensure that your Shopify collections have proper canonical tags that point to the primary collection URL. Shopify typically generates these automatically, but you can check them:

  1. Go to your Online Store > Themes > Actions > Edit Code.

  2. Open the collection.liquid file or any relevant layout file.

  3. Look for the canonical tag:

    <link rel="canonical" href="{{ collection.url }}">
    
  4. If missing or incorrect, add or fix it to ensure Google recognizes the main collection URL.

3. Update Google Search Console

Submit your sitemap to Google Search Console to help it understand which pages you want indexed:

  1. Go to Google Search Console > Index > Sitemaps.
  2. Enter the sitemap URL for your store (e.g., https://yourstore.com/sitemap.xml).
  3. Request a recrawl for your site.

4. Check and Update Internal Linking

Ensure that your internal links (menus, breadcrumbs, etc.) link directly to the collection pages instead of filtered/tagged URLs.

  • Go to Online Store > Navigation and review your menus.
  • Replace any filtered/tagged URLs with the main collection URLs.

5. Request Removal of Indexed Tags

For any tag URLs already indexed, use Google’s URL Removal Tool to request their removal:

  1. Go to Google Search Console > Index > Removals.
  2. Use the Temporary Removals tab to submit the unwanted URLs for removal.

6. Ensure Tag URLs Are No-Indexed

If you can’t prevent tag URLs from being created, you can add a noindex meta tag to these pages:

  1. Go to Themes > Actions > Edit Code.

  2. Find the relevant template file generating the tag URLs, such as collection.liquid.

  3. Add the noindex meta tag for pages with tags:

    {% if current_tags %}
    <meta name="robots" content="noindex">
    {% endif %}
    
  4. Save the changes.

Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you.