How can I add custom SEO meta fields for each product variation?

How can I add custom SEO meta fields for each product variation?

New Member
4 0 0
we have two problems we are trying to find a solution to on 
1. We currently have Dynamic URLs on the category/collection pages we need to have separate SEO meta fields, content and static URLs for each type, colour etc (variations on collections).
2. Complex products which have variants for colour, size etc which are dynamic similar to the category page but we cannot have individual meta fields for each variant? This seems to fallback to the parent product descriptions and SEO meta fields.
Would it be possible to even add custom fields for each variant for SEO meta fields?
Replies 2 (2)

Shopify Partner
390 34 118

They recently introduced metafields per variant.

So you could introduce a variant metafield under Settings > Metafields: 



Which shows up on the variant editor like this: 


You might have this setup:

ProductProduct TitleProduct SEO TitleVariant TitleVariant SEO Title [Custom Metafield]
AAccent Tub ChairAccent Tub ChairBlack PU LeatherBlack Faux Leather Tub Chair
AAccent Tub ChairAccent Tub ChairBeige Tartan FabricBeige Tartan Fabric Tub Chair


From there it would be pretty straightforward to combine fields + some SEO title liquid logic something like: IF Variant SEO Title is not blank, THEN use it, else fallback to Product SEO Title + Variant Title. 

But you've also got the problem of sitemaps (variants not in it), canonicals (would need to switch to self-canonicalized to get indexed), and then also you probably want to have some LINKS between variants to ensure there is a crawl/click path to them. 

So it's all possible, there are just a few things to consider. Another approach is to break them out into separate products and create custom variant selectors on the product page for defined "product groups". 

I would suggest that if you're intending to do this for SEO reasons, start with keyword research and work your way out from there to help pick a SEO title convention and then after that, how that can be implemented by theme and/or metafield customization.

Part time Shopify SEO, based in NZ. Sometimes freelance outside the 9-5.

Shopify Partner
89 1 4

Hi @A1SEOGlasgow ,


Understanding that Shopify doesn't natively support separate SEO metafields for each product variant can be challenging. You might consider using metafields to store SEO data for each variant, and then modify your theme's liquid code to pull in the correct metafields according to the selected variant. This way, each variant could potentially have its own SEO title and meta description, which could improve search visibility for your individual products.


In your case, SEOPro could assist by auditing your SEO setup and identifying areas for improvement, such as missing keywords in your product titles or descriptions. It also offers bulk optimization tools, which might save you time when updating metafields for multiple products or variants. While SEOPro can't create metafields for variants directly, it can help you optimize the ones you set up.


Full disclosure: We are the developer of this app. Feel free to reach out to us:



Seopro Developer

SeoPro Developer
For any question, feel free to reach out to us: