Is it beneficial to remove variant ID from URLs for SEO?

Hi,

Is there any drawback of removing variant ID in URL? Is removing good for SEO?

?variant=XXXXXX

Thank you

Themes that include this can do it in a few ways. Some might add it to links (eg: a collection lets you pick sizes from the collection page) so when you hit the product page the size is already picked for you.

Other themes will update the url AFTER the customer has landed on the product page. Meaning it is not in the url that’s clicked, and not in the url on initial page load. The code in the theme can auto picks the first available variant and that’s variant id is what’s updated in the url.

Is google picking up that url with the querystring? You might find that it’s not.

If your theme supports it linking directly to the url with the querystring means it will auto pick that specific variant. That can be handy.

If you really don’t like it it would be possible to remove. Without knowing your theme it’s hard to say if this would be a feature that can be changed in theme settings, or if it would be something you’d need to adjust in the code itself.