> ## Documentation Index
> Fetch the complete documentation index at: https://developers.perform.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Checkout EDD Widget

> Delivery date widget that shows an estimated delivery date on your product, cart, checkout and order confirmation pages, in your design and language.

**Available to all Checkout customers.**

## Summary

The Checkout EDD Widget is a delivery date widget, also called a delivery estimate widget or EDD widget: an embeddable HTML and JavaScript component that displays a Perform.AI-calculated estimated delivery date (EDD) on your storefront. You add it to a page with a two-line code snippet, an embed code made of a `div` and a script tag; it calls Perform.AI when the page loads, renders the date in your branding and language, and recalculates as the shopper changes where the parcel is going.

## Who it’s for

E-commerce and front-end teams who want a single delivery date on every page where a shopper decides to buy, without building and maintaining the display themselves. The widget suits brands that would rather insert a snippet than build a feature; brands that want full control over rendering call the Checkout EDD API instead, a delivery date API that returns the same prediction without the component.

## Key benefits

* **One date across the journey.** The same prediction appears on product, cart, checkout and order confirmation pages, and the checkout reference carries it into the order confirmation email and the Tracking Page.
* **Set up once, place anywhere.** Each page gets a variant and a two-line snippet. The widget works on any page you can insert HTML into, and on Shopify’s locked checkout, thank-you and order status pages through a Perform.AI Custom App.
* **Reads as part of your store.** Layout, colours, fonts, icons and copy are configured to your design, with one variant per language and no cap on the number of languages.
* **A shopper can change the destination.** The Standard version carries a country and postal code selector, and the date recalculates in real time.
* **Never an error, never an empty space.** When no confident date can be produced, the shopper sees a short text range instead.

## How it works

### Versions

| Version | Shopper can change location? | Typical use |
| - | - | - |
| Standard | Yes. Country and postal code selector; the EDD recalculates in real time | Product and cart pages, where no address is known yet |
| Lean | No. Uses fixed default location values | Pages where the address is already known, or where a simpler display is preferred |

The widget is responsive down to a 600 px breakpoint, loads asynchronously and shows a skeleton loader while the date is fetched, so the page does not block on it.

### Where it can be placed

The widget is a standard embeddable script and can sit on any page where you can insert HTML, provided the page can supply or default the location inputs described below.

| Page | Non-Shopify storefronts | Shopify |
| - | - | - |
| Product page | Two-line embed | Custom Liquid (all plans) |
| Cart page | Two-line embed | Custom Liquid (all plans) |
| Checkout page | Two-line embed | Shopify Plus only, through a Perform.AI Custom App using Checkout UI Extensions |
| Thank You and Order Status pages | Two-line embed | Custom App (all plans except Starter) |
| Any other page | Two-line embed | Custom Liquid, where the theme allows it |

Shopify does not permit arbitrary customisation of its checkout and post-purchase pages, so those pages need a Custom App built with Shopify’s own UI components. One Custom App covers one Shopify Organization: all stores in that Organization can use it, and a separate Organization needs a separate app.

### Variants

A variant is a configured combination of layout, language, shipping method and page type, and the snippet you copy from the Domains page selects it by its variant reference.

* **One variant per page type.** Use the variant issued for that page; a product-page variant placed on a cart or checkout page will not behave correctly.
* **One variant per language.** Multilingual storefronts use one variant per language. Translations of the widget’s fixed elements (the “Estimated Delivery Date” label, the fallback text, the error message in the location selector) are maintained by Perform.AI and further languages can be added on request. Any surrounding copy you add is yours and must be supplied per language.
* **One variant per shipping method.** Standard and Express produce different dates for the same destination, so each shipping method you want to show is its own variant. On product and cart pages, where the shopper has not chosen a method yet, the variant you place decides which method is estimated: Express shows the fastest date early in the journey, Standard shows the date most shoppers get. If the product page shows Express and the shopper then selects Standard at checkout, the date changes between the pages. Your account team confirms the choice during onboarding and can change it later on request.

### Installation

Copy the snippet for each funnel stage from the Domains page (see [How to set it up](#how-to-set-it-up)) and place it in the page where the date should appear. The snippet is two lines: one identifies the variant and one loads the widget runtime.

### Test before you go live

Perform.AI issues a test variant and its snippet first. Check the widget on your storefront with the test variant, then replace it with the production snippet.

On Shopify checkout, Thank You and Order Status pages, the Custom App can only be tested inside your own store, so the final check on production sits with you.

### When the shopper changes something

The Standard widget recalculates the date in real time when the shopper changes the country or postal code in its location selector.

Where the widget reads the destination from your own page, such as your checkout address fields, it follows changes to those fields, so the date tracks the address the shopper enters.

If the widget is placed somewhere the page re-renders (a cart drawer, a mini-cart, a single-page checkout step), it has to be re-run after the update. The Domains page shows how, next to your snippet.

### Location inputs

The widget needs a destination and, where you ship from more than one location, an origin. It resolves these in strict priority order, falling through to the next source only when the previous one is unavailable:

1. Values already on the page, such as the address fields on your checkout page or a saved profile address.
2. Values the shopper enters in the widget’s own location selector.
3. Browser information (geolocation and timezone), which triggers a browser permission prompt.
4. Local storage: context or cookies carried over from earlier pages.
5. A default value you provide, as the final fallback.

No single input is strictly mandatory, because every input has a configured default, so the widget always renders something. Accuracy drops quietly as you supply less: the practical minimum for a real date is a destination country code, and the destination postal code is the single biggest accuracy gain over country alone. Origin country and postal code matter where you ship from more than one location.

| Page | Destination | Origin |
| - | - | - |
| Product page | Usually not known. The Standard widget’s selector collects it from the shopper, or you supply a default for the storefront’s market | Supply if you ship from more than one location |
| Cart page | Same as the product page | Same as the product page |
| Checkout page | Point the widget at your address fields. The shopper has entered a real address, so this is the highest-value step of the integration | Supply if multi-origin |
| Thank You and Order Status pages | Point at the confirmed order address, or supply fixed values | Supply if multi-origin |

The Standard widget’s location selector offers a fixed set of countries. That list governs what a shopper can pick in the selector and is separate from the destinations your EDD model covers; confirm the markets in scope with your account team.

### Where the date comes from

The widget displays the date; it does not produce it. The date comes from your [EDD Prediction Model](https://developers.perform.ai/products/checkout/edd-prediction-model.md), which Perform.AI builds from your historical shipment data. The lanes it covers are agreed with you during onboarding, and widening that scope turns more fallback ranges into real dates.

The shipping method is set in each variant, not read from your page (see [Variants](#variants)).

### Fallback behaviour

When an EDD cannot be calculated, because the destination falls outside the configured model scope, no postal code has been resolved yet, or the prediction does not meet the required confidence threshold, the widget shows a fallback text range instead of a date.

* It is a text range, not a date. The shopper sees a range expressed in words.
* It defaults to “2-3 business days” and can be adjusted on request to reflect typical transit times in your main market.
* It is translated along with the rest of the widget’s fixed elements.

If the fallback appears more often than expected, it usually means a lane not yet covered by your model scope or destination inputs not reaching the widget. Both are resolvable with your account team.

### What the shopper sees

A calculated date is rendered in the format **Days to Delivery, Date Month (Day of Delivery)**, where the first part is Today, Tomorrow or the number of days:

* *Tomorrow, 13 October (Monday)*
* *In 3 days, 15 October (Wednesday)*

Where your variant is designed with it, an order-within cue sits beside the date, so the shopper sees how long they have to order for that date.

### Display best practices

The widget is built around eight practices that make a delivery date worth showing:

1. A single date, not a range.
2. The weekday beside the date.
3. How many days away the date is.
4. Enough visual weight for the date to be read on a busy page.
5. Framing as an estimate, not a guarantee.
6. An urgency cue, such as an order-within countdown, while the shopper can still act on it.
7. A way for the shopper to change the delivery location.
8. The ability to test one display against another.

The widget arrives rendering a single date, the weekday, the number of days away and a location the shopper can change. Raise the rest in your design request for each variant, and compare displays with [Checkout Widget A/B Testing](https://developers.perform.ai/products/checkout/checkout-widget-ab-testing.md).

### Measuring the impact

[Checkout Analytics](https://developers.perform.ai/products/checkout/checkout-analytics.md) counts the widget’s page events. A conversion rate needs two placements: a pre-checkout widget and an order confirmation (Thank You page) widget.

To measure your current storefront before you change anything, ask your account team for the invisible widget: the tracking code with nothing rendered. It counts sessions and conversions with no visible change to the page, which gives you a baseline to compare against.

### The checkout reference and storing dates

Every prediction has a `checkout_id`, returned by the [Checkout EDD API](https://developers.perform.ai/api-reference/checkout/predict-checkout-edd.md). The widget does not expose the predicted dates as retrievable values.

The `checkout_id` is a reference key. To link the date shown at checkout to a real order, pass it in the `additional_info` object when you create the shipment:

```json theme={null}
"additional_info": {
  "checkout_id": "f631b0c3-30f4-4b07-9ee6-64553e102a0c",
  "checkout_time": "2026-09-22T02:35:10Z"
}
```

Once linked, the checkout EDD for that order is visible in the shipment’s Parcel Details in the portal, and the same date can be used in the order confirmation email and on the Tracking Page. See [Shipment EDD](https://developers.perform.ai/products/checkout/shipment-edd.md).

On Shopify checkout, Thank You and Order Status pages the `checkout_id` is written to an order metafield rather than being readable from the page; query it with the Shopify Admin GraphQL API.&#x20;

If you need the dates themselves in your own systems, the widget alone will not do this:

| Option | How it works | Trade-off |
| - | - | - |
| Widget and API | The widget renders the date; you call the Checkout EDD API separately to retrieve and store the value | Two calls; the stored value is guaranteed and there is no rendering work on your side |
| API only | You call the API, store the result and render the date yourself | One call and full control over presentation; you build and maintain the UI |

Serving the displayed date from the widget while independently calling the API can, in principle, produce two values if the model updates between calls. The API-only option avoids this.

### Configuration and changes

The widget’s design is configured to your branding, but all configuration and updates are made by Perform.AI. There is no self-service design editor. To change layout, copy, translations, default values or positioning, raise a request with your account team and include the desired design. Because a Shopify Custom App can only be tested inside your own store, final verification on production sits with you.

## How to set it up

Widget-to-page assignment and the implementation snippets live on the Domains page. Domains are created by Perform.AI at your request; select **Add Domain** to raise the request.

Go to **Checkout** > **Domains**.

1. Select the domain’s row to open its detail panel.
2. Select the pencil icon, choose a widget for each funnel stage you want to cover (Product, Cart, Checkout, Thank You) and select **Save**.
3. Select **Widget Implementation** and copy the snippet for each stage. Each snippet contains its own variant reference and loads the widget script.
4. Add each snippet to the matching storefront page. Changing an assignment changes the variant reference in the snippet, so the storefront must be updated for the change to take effect.

> [!TIP]
>
> Assign a widget to all four stages where possible. A Thank You page widget is the only way completed orders can be attributed to checkout sessions in [Checkout Analytics](https://developers.perform.ai/products/checkout/checkout-analytics.md).

For Shopify checkout, Thank You and Order Status pages, Perform.AI supplies a custom install link. Install the app in your Shopify admin, then add the app block in the Checkout Editor (**Settings** > **Checkout** > **Customize**) on the Shipping step and on the Thank you page, and save. Installing the app does not by itself make the widget appear; the app block step is the one most often missed. If the widget appears in standard checkout but not in Shop Pay, approve the app in the checkout authorization prompt. The [Shopify integration guide](https://developers.perform.ai/integrations/shopify.md) covers order import only; the checkout app install link comes from your account team.

## Use via API and MCP

* Guide: [Predict checkout delivery dates](https://developers.perform.ai/guides/predict-checkout-edd.md) shows how to request a prediction, display it and link the `checkout_id` to the shipment.
* API reference: [Predict checkout EDD](https://developers.perform.ai/api-reference/checkout/predict-checkout-edd.md).
* MCP: `list_checkout_domains` returns your domains and their widget assignments; `list_checkout_variants` returns the configured widget variants. Both are documented on [MCP tools](https://developers.perform.ai/mcp/tools.md).

## FAQ

### Which fields do I have to add to my pages?

None are strictly mandatory, but accuracy depends on them. A destination country code is the practical minimum for a real date, and pointing the widget at your checkout address fields is the highest-value step.

### Do the required fields differ per page?

The fields are the same; what changes is where the values come from. On product and cart pages the widget’s own selector usually supplies the destination; on the checkout page you point it at your address fields.

### Can I put the widget somewhere other than product, cart or checkout?

Yes. It works on any page where you can insert HTML, as long as that page can supply or default the location inputs. Widgets on custom pages such as mini-cart drawers sit outside the four funnel stages and are not counted in Checkout Analytics.

### How do I show delivery date at checkout and the estimated delivery date on product pages?

Place a variant on each page type: the product page widget shows the estimated delivery date on product pages, and the checkout variant shows it at checkout. Copy each snippet from the Domains page. On Shopify, the checkout page needs the Perform.AI Custom App and Shopify Plus.

### Is the widget a shipping date plugin or an app I install?

On most storefronts there is nothing to install: it is a delivery date snippet you paste into the page. On Shopify’s checkout, Thank You and Order Status pages it is installed as a Shopify delivery date app, a Perform.AI Custom App built on Shopify’s checkout extensibility (Checkout UI Extensions), because Shopify does not allow other code on those pages.

### Can I test the widget before it goes live?

Yes. Perform.AI issues a test variant first; you check the widget with it, then switch to the production snippet. On Shopify’s checkout, Thank You and Order Status pages, the final check happens in your own store.

### How do I see whether the delivery date improves conversion?

Place a widget before checkout and one on the Thank You page; Checkout Analytics then reports conversion. To compare two displays, use Checkout Widget A/B Testing. For a baseline before you change anything, ask your account team about the invisible widget.

### Why does the widget show a range like “2-3 business days” instead of a date?

That is the fallback, shown when a confident date cannot be produced for that destination. Persistent fallback usually means a lane outside your model scope or inputs not reaching the widget.

### Why is the date on my product page different from the one at checkout?

Most often the two pages estimate different shipping methods: the product-page variant may be Express while the shopper selected Standard at checkout. Choose the product-page variant deliberately.

### Can I change the widget design myself?

No. Raise a change request with your account team. If you want direct control over rendering, call the Checkout EDD API and build your own front end.

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| The widget disappears or goes stale after the cart updates | The page re-rendered the element holding the widget | Re-run the widget after the update, as shown with your snippet on the Domains page. |
| The fallback range shows on most sessions | The destination is outside the model scope, or destination inputs are not reaching the widget | Check the inputs the page supplies, then confirm the lanes in scope with your account team. |
| The widget behaves incorrectly on a page | The variant placed was issued for a different page type | Use the variant issued for that page, copied from the Domains page. |
| The widget does not appear on the Shopify checkout page | The app block was not added in the Checkout Editor, the store is not on Shopify Plus, or the app has not been approved for Shop Pay | Add the app block under **Settings** > **Checkout** > **Customize**; confirm the plan; approve the app in the checkout authorization prompt. |
| A shopper is asked for location permission | The input chain fell through to browser information | Supply the destination on the page or set a default, so the widget resolves it earlier in the chain. |

## Related

* [EDD Prediction Model](https://developers.perform.ai/products/checkout/edd-prediction-model.md)
* [Checkout Analytics](https://developers.perform.ai/products/checkout/checkout-analytics.md)
* [Checkout Widget A/B Testing](https://developers.perform.ai/products/checkout/checkout-widget-ab-testing.md)
* [Pick-Up Point Selector](https://developers.perform.ai/products/checkout/pick-up-point-selector.md)
* [Shipment EDD](https://developers.perform.ai/products/checkout/shipment-edd.md)
* [Checkout overview](https://developers.perform.ai/products/checkout/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.