--- title: shopify-context description: >- The context component defines which Shopify data should be available in different parts of your page. api_name: storefront-web-components source_url: html: >- https://shopify.dev/docs/api/storefront-web-components/components/shopify-context md: >- https://shopify.dev/docs/api/storefront-web-components/components/shopify-context.md --- # shopify-context The context component defines which Shopify data should be available in different parts of your page. Each `` component requires two attributes: * `type`: Specifies what kind of data you want (for example, `product`). * `handle` or `gid`: Identifies the specific item. For example, the handle for the URL [`demostore.mock.shop/products/men-t-shirt`](https://demostore.mock.shop/products/men-t-shirt) is `men-t-shirt`. The `gid` attribute can be used to identify the item by its unique id, e.g. `gid://shopify/Product/7982853619734`. If you're working with a single storefront, then you can add the `` component anywhere on your page (it doesn't need to be inside the `` component). If you're working with multiple storefronts, then nest the context inside its corresponding store component. Every `` component also requires a `