Shopify has introduced the analyticsQueryable capability to the MetafieldDefinition type in the GraphQL Admin API. This new feature allows developers and merchants to designate custom metafields as queryable within Shopify Analytics, enabling deeper segmentation and analysis of store performance data. The capability can be configured when creating or updating a metafield definition through the MetafieldDefinition.capabilities field.
Custom metafields are powerful tools for storing unique data specific to your business, but until now, they couldn't be directly leveraged in Shopify Analytics for filtering and grouping. This update bridges that gap, allowing merchants to extract meaningful insights from their custom data without relying on third-party analytics tools. For developers building custom apps and solutions, this opens new possibilities for creating data-driven features that integrate seamlessly with Shopify's native analytics platform.
analyticsQueryable capability where relevant.GetShopifyToken simplifies the authentication process for accessing Shopify's GraphQL Admin API with the correct scopes. When implementing the new analyticsQueryable capability, you'll need proper API credentials—our platform makes obtaining and managing those tokens straightforward so you can focus on building analytics features.