never ending ?variant page issues

onedaydayone

Regular Member
Joined
Aug 5, 2019
Messages
294
Reaction score
93
I noticed over 100 new indexed pages, and all of them are ?variant= URLs. My CMS is Shopify.

I checked every one of them, and each has a canonical tag pointing to the main product page. So technically there's no issue. But a canonical is only a recommendation for Google, not a strict rule that stops a page from being indexed. Am I right?

How should I deal with all these newly indexed variant pages? Two things I've found:

1. In my Product structured data, the offers section lists all of these variant URLs.
2. Several category pages on my site have product cards that link directly to ?variant= URLs.

Because of wasted crawl budget and duplicate content across these variant pages, I'd like to deindex them all. Is this a good decision?

I can't find one clear answer, but I think noindex, follow would be a better option than blocking them with a disallow rule in robots.txt. What do you think?
 
You're right that the canonical is only a hint, but I wouldn't add noindex on top of it. Google's canonical docs say not to use noindex to keep a URL from being chosen as canonical; the two together send mixed signals.

First check whether they're really indexed. Run URL Inspection on a few: if the Google-selected canonical is the main product URL, Google has already folded them in and they may only show in a site: search. Ones listed under "Alternate page with proper canonical tag" in Page indexing are fine too.

If Google did pick some variant URLs, the collection links are the likely cause. Find which cards link to ?variant= (often a colour swatch app or a filtered collection view) and point them at the plain product page, so every internal link goes to the clean URL. The variant URLs in the offers markup are standard in Shopify themes, so I'd leave those.

At around 100 URLs crawl budget isn't a real concern. Fix the links and recheck the inspection results in a few weeks.
 
In GSC under "Google-selected canonical" I found "Inspected URL" and that inspected URL is ?variant page.

Anothet issue is that, if I replace every ?variant= link with the main product URL, my collection pages lose their purpose, because they list many ?variant= URLs.

For example, my /blue-running-shoes collection page lists a separate ?variant= URL for each size (9, 9.5, 10, etc.). If I replace those links, the collection will show only 3 unique products instead of 40 variants.
 
Don't use noindex or block them in robots.txt because that breaks your canonical signals and merchant feeds. Keep the variant urls in your schema offers. Just edit your collection template so product cards link to the clean main product url instead
 
Don't use noindex or block them in robots.txt because that breaks your canonical signals and merchant feeds. Keep the variant urls in your schema offers. Just edit your collection template so product cards link to the clean main product url instead
But I told you I have only 4 unique products, each with multiple variants. So should each of my collection pages show only 4 product cards?

If I keep the variant cards but change every ?variant= URL to the main product URL, whatever you click, you land on the default product page. Then the user has to pick all the options again.

Interesting case...
 
In GSC under "Google-selected canonical" I found "Inspected URL" and that inspected URL is ?variant page.

Anothet issue is that, if I replace every ?variant= link with the main product URL, my collection pages lose their purpose, because they list many ?variant= URLs.

For example, my /blue-running-shoes collection page lists a separate ?variant= URL for each size (9, 9.5, 10, etc.). If I replace those links, the collection will show only 3 unique products instead of 40 variants.
Listing every size as its own card is probably why Google picks the variant URL, your internal links say one thing and the canonical says another. I'd show one card per color and let people pick the size on the product page, nobody searches for size 9.5 anyway.
 
I wouldn't change those links either if customers need to land on the exact size they selected. I would first check whether Google is actually treating these variants as separate pages in search. If they're not bringing any value then I would look at cleaning up the indexing signals rather than affecting the shopping experience.
 
Listing every size as its own card is probably why Google picks the variant URL, your internal links say one thing and the canonical says another. I'd show one card per color and let people pick the size on the product page, nobody searches for size 9.5 anyway.
"I'd show one card per color and let people pick the size on the product page" - but that still leaves variant URLs, just fewer of them, because whichever color I choose, it still opens a ?variant= URL.
 
Pointing collection links to the clean main URLs helps more than adding noindex to canonicalized variant pages
 
I would start by fixing the product links and schema before adding noindex since Google needs consistent signals pointing to the main product URLs
 
But I told you I have only 4 unique products, each with multiple variants. So should each of my collection pages show only 4 product cards?

If I keep the variant cards but change every ?variant= URL to the main product URL, whatever you click, you land on the default product page. Then the user has to pick all the options again.

Interesting case...
With only 100 urls you don't even have a real crawl budget issue, so leaving them alone with canonicals is totally fine. If people actully search for specific colors or styles, just split those variants into separate products so your grid stays full with clean urls. Otherwise just show 4 product cards with clickable swatches right on the collection page so buyers pick their option before clicking
 
Yes, using noindex follow is the best choice here. Also make sure to update your structured data and category links to point directly to the main product URLs.
 
I noticed over 100 new indexed pages, and all of them are ?variant= URLs. My CMS is Shopify.

I checked every one of them, and each has a canonical tag pointing to the main product page. So technically there's no issue. But a canonical is only a recommendation for Google, not a strict rule that stops a page from being indexed. Am I right?

How should I deal with all these newly indexed variant pages? Two things I've found:

1. In my Product structured data, the offers section lists all of these variant URLs.
2. Several category pages on my site have product cards that link directly to ?variant= URLs.

Because of wasted crawl budget and duplicate content across these variant pages, I'd like to deindex them all. Is this a good decision?

I can't find one clear answer, but I think noindex, follow would be a better option than blocking them with a disallow rule in robots.txt. What do you think?
tbh I would not be overly concerned with 100 URL variations. I don't think that is something associated with crawl budget. I would just leave the shopping experience as-is and look at GSC to see whether these variations have any impressions/clicks. If the variations do not bring any search traffic nd google has already chosen a canonical version for the main product page, there is no need for change.
 
I think you're in right track . canonical tags are hint, not guarantes, Google can still index variant URLS in some case. I'd first make sure all internal product link pont to the main product URLS instead of variant URLS and review the structured data. If those variant pages do not need to appear in search results noindex could be an option, but I'd be careful not to Combine it with robots. txt blocking, as Google needs to crawls the page to see the noindex directive. I'd also monitor GSc after making changes to see how google responds.
 
If you want to keep the size cards, link them to the clean product URL with the size in a hash, like /products/blue-runner#size-10. Google ignores everything after the #, so it only sees one URL, and a few lines of JS in your product template can read the hash and preselect that size. Shoppers still land on the size they clicked, and your internal links stop pointing at ?variant=. Leave the variant URLs in the offers markup, that part is normal for Shopify.
 
Back
Top