How do I export the Shopify collection's SEO title and SEO description tags?

Shopify stores this data in the Collection Metafields using the following metafield keys:

  • title_tag
  • description_tag

In EZ Exporter, simply add these keys in the Metafields -> Collection Metafields section as shown below:

Note that by default, Shopify will use the collection title field for the SEO title and the first 320 characters of the body_html field (but with the HTML tags excluded) for the SEO description if you didn't manually specify the SEO title and description.  In this case, if you never edited the SEO title or description, then these metafields won't exist and will export a blank value.

If you have a mix of collections where some are using the default and others have custom ones, you can utlize the Calculated Fields section instead with these formulas:

SEO Title

{{ metafields.global.title_tag }} or {{ title }}

SEO Description

{{ metafields.global.description_tag }} or strip_html_tags({{ body_html }})[:320]

The above formulas will check the metafields first if they exist, and default to the title/body_html fields if not.


Related Articles:


App: EZ Exporter

Tags: metafields, seo, collections, shopify collections