Save forecasts as metafields

Updated Nov 14, 2026

Demand Forecasts can save each forecast to your store as metafields, so you can use them in your theme, in Shopify Flow or in other apps.

Turn it on

  1. In Demand Forecasts, open Settings.
  2. Under Save forecasts to your store, tick where you want them: Products, Variants or Collections.
  3. Click Save in the bar at the top of the page.
  4. The first time, Shopify asks you to let the app edit products. Approve it. The app can't write metafields without it.

The app saves your forecasts straight away, then again every Monday after each new forecast. Settings shows when they were last saved and how many metafields were written.

The metafields

Metafield Type What it holds
ouiteo.forecast_7d Decimal Units expected to sell in the next 7 days
ouiteo.forecast_30d Decimal Units expected to sell in the next 30 days
ouiteo.forecast_90d Decimal Units expected to sell in the next 90 days
ouiteo.forecast_updated_at Date and time When the forecast was made

Units are rounded to one decimal place, so slow-selling products show a small number such as 0.4 rather than 0.

How variant and collection forecasts work

  • Variants share their product's forecast in proportion to how much each variant sold over the last 90 days. If none of a product's variants sold in that time, the forecast is shared equally between them.
  • Collections add up the forecasts of every product in the collection.

Use them in your theme

Show a product's 30-day forecast in a Liquid template:

{{ product.metafields.ouiteo.forecast_30d }}

Use variant.metafields.ouiteo.forecast_30d or collection.metafields.ouiteo.forecast_30d in the same way.

Turn it off

Untick the options in Settings and save. The app stops updating those metafields. The values already saved stay in your store until you delete them.