Storefront API

Overview of the public window.Measura storefront API for Shopify theme integrations.

Overview

The public storefront surface is exposed as window.Measura. This API is intended for Shopify theme code that needs to build Measura-compatible line item properties, read Measura cart measurements, react to Measura block events, or coordinate mounted product blocks on the page.

Not every window.Measura method has the same availability. Shared storefront methods only require the shared runtime to be loaded, while block methods require at least one Measura product block to be rendered and initialized.