If you’ve ever wished you could answer questions like “Which fabric sells best?” or “Which color drives the most revenue?” without exporting a CSV, Shopify has just delivered. Category metafields—those custom attributes you assign when you group products—are now available as native dimensions and filters in the Analytics app. This update turns static product‑level data into actionable insights, all inside the reporting UI you already use.
What’s New: Category Metafields in Analytics
Previously, category metafields such as "color", "material", or "fit" only lived on the product page. To analyze performance you had to export orders, join the data in a spreadsheet, and manually aggregate results. The new functionality surfaces those same metafields in Analytics as first‑class dimensions, allowing you to slice, dice, and filter reports directly. They appear alongside any custom metafields you’ve defined, meaning you can combine product‑level and category‑level attributes in a single view.
Who Is Affected – Merchants vs. Developers
Merchants – If you already use category metafields to tag products, you’ll see the new options automatically. No additional setup is required; just open Analytics and start adding the new fields to your reports. If you haven’t defined any category metafields yet, this is a great moment to start, because the data will be instantly reportable once the definitions are saved.
Developers – The API surface for category metafields hasn’t changed, but you may want to update any custom dashboards or apps that pull analytics data. The GraphQL Admin API now returns category metafield keys in the same shape as product metafields, so you can query them in a unified way. Existing code that builds custom reports should be audited to include the new dimension where relevant.
How to Leverage Category Metafields in Your Reports
Because Shopify consolidates multiple values on a single row, a product that belongs to two colors (e.g., "Red" and "Blue") will appear once per order, with both values listed in the same cell. This prevents double‑counting while still giving you the full picture.
Implementation Tips and Example Queries
### Defining a Category Metafield (if you haven’t already)
Use the Shopify admin or the metafields definition UI to create a new metafield on the Category resource.
{
"definition": {
"namespace": "custom",
"key": "material",
"type": "single_line_text_field",
"description": "Primary material of the category",
"owner": "CATEGORY"
}
}
Once saved, assign values to each category (e.g., "Cotton", "Wool", "Leather").
### Pulling Category Metafields via GraphQL (for developers)
If you build a custom analytics dashboard, you can fetch the new fields alongside product data:
graphql
query CategoryMetafields($ids: [ID!]) {
categories(ids: $ids) {
id
metafields(namespace: "custom", first: 10) {
edges {
node {
key
value
}
}
}
}
}
The response will include the same key/value pairs that appear in the Analytics UI, making it easy to mirror the native reports in your own tools.
Things That Remain Unchanged
Next Steps for Your Store
CATEGORY owner type.By turning static categorization data into live analytics, you close the loop between merchandising decisions and revenue outcomes.
Ready to turn your category tags into growth drivers? Dive into Analytics today, explore the new dimensions, and let the data guide your next product launch. Need help setting up metafields or building a custom dashboard? Contact our Shopify strategy team for a personalized walkthrough.
