Skip to content

Tracking links

Every order has a tracking link: a web page where the customer follows the delivery live. The page carries your brand, needs no sign-in or app, and stays the same if the order moves to another fleet.

https://trackdelivery.io/?orderId=<order id>

<order id> is the First Delivery order ID returned when you create the order. The link works as soon as the order exists.

Where What you get
Webhooks trackerLink on every standard order event. See Webhook fields.
Your own code Build it from the order ID with the format shown here. Order API responses do not include a tracking link.
Dispatch First Tracker Link in an order’s action menu. See Open the link from Dispatch.
Diner text message {tracker_link} in a tracking text message. See Text the link to diners.
{
"orderId": "c874a67f-ac83-4ab4-a4b3-c86714de26f6",
"status_v3": "en_route_dropoff",
"trackerLink": "https://trackdelivery.io/?orderId=c874a67f-ac83-4ab4-a4b3-c86714de26f6",
"trackerLinkFleet": "https://fleet.example.com/track/100042",
"fleetName": "Example Fleet"
}
Field Meaning
trackerLink The First tracking page for the order, with your brand. Show customers this one.
trackerLinkFleet The delivering fleet’s own tracking page, with the fleet’s brand, such as Uber or DoorDash. null when the fleet has none or no fleet is assigned.
fleetName The delivering fleet’s name. Can be null.
dspTrackerLink Older name for the fleet’s tracking page. Use trackerLinkFleet in new integrations.

trackerLink does not change during an order. trackerLinkFleet changes when the order is reassigned to another fleet. See Webhooks for the rest of the payload.

Open an order in Dispatch and select the action menu (the circled ⋯ button at the top of the order). First Tracker Link opens the customer tracking page. Fleet Tracker Link appears when the delivering fleet has its own page.

View full size: Order action menu in Dispatch with First Tracker Link and Fleet Tracker Link
Order action menu in Dispatch with First Tracker Link and Fleet Tracker LinkOpen full size

The page reads the order’s current state and refreshes about every 10 seconds.

Part of the page What it shows Controlled by
Header Your logo. Branding
Status and ETA The current step, the estimated delivery time, and progress through the delivery. Order state. See Status wording and ETA.
Merchant The merchant’s name and a call button. Merchant Name and Merchant Phone
Order details Subtotal and tip. Order Details
Courier The courier’s name and a call button, once a courier is assigned. Driver Name and Driver Phone
Customer The customer’s name and delivery address. Always shown
Order number Your order reference if you sent one, otherwise the First order number. Always shown
Map Pickup, drop-off, and the courier’s live position when the fleet reports one. After delivery, the drop-off photo replaces the map when there is one. Order state
Footer banner An image that links to a page you choose, such as a loyalty program or survey. Branding
Support chat A support chat widget, when one is set up for your account. Support Widget

On a phone, the map fills the top of the page and the details sit in a panel the customer can pull up for the full timeline and order details.

The page does not name First Delivery.

Order state Webhook status_v3 Customer sees
Waiting for the merchant to accept — Confirming Your Order
Waiting for a courier — Preparing Your Order
Courier assigned and travelling to pickup en_route_pickup En Route to Pickup
Courier at pickup arrived_pickup Arrived at Pickup
Picked up and travelling to the customer en_route_dropoff En Route to You
Courier at the customer arrived_dropoff Arriving Now
Delivered completed Delivered
Cancelled cancelled Cancelled

Not every fleet reports every step, so a customer can see the page move straight from En Route to Pickup to En Route to You. See Delivery lifecycle for the full state model.

The page shows one delivery time, and on a phone a range in minutes, such as 9 - 14 minutes. It does not explain how the time was worked out. In Dispatch, Settings → Diner Experience plays the rules below on the live tracking preview, one step at a time.

The ETA has three phases. In the phone range, N is the number of minutes until the time shown.

Phase What the page shows Phone range
Before pickup The drop-off estimate plus the merchant’s Delivery Time Buffer. N - N+5 minutes
Before pickup, within 10 minutes of that time (floor) 10 minutes from now. The time moves forward with the clock. 10 - 20 minutes
After pickup The drop-off estimate on its own, with no buffer and no floor. It can be under 10 minutes away. N - N+5 minutes
Who delivers the order Estimate used, in order of preference
Your own drivers Real-time arrival estimate, then the estimate made when the order was created.
Fleets your dispatch works, such as Ralph Real-time arrival estimate, then the fleet’s estimate, then the estimate made when the order was created.
Third-party fleets, such as DoorDash and Uber The fleet’s estimate, then the real-time arrival estimate, then the estimate made when the order was created.

Ralph sets its estimate when the order is created and never updates it. Without real-time arrival estimates, a Ralph order’s ETA does not move.

Until pickup, the page adds the merchant’s Delivery Time Buffer to the estimate. The buffer covers preparation time the estimate cannot see, so the customer is not promised a time the kitchen cannot meet. New merchants start with 20 minutes. Set it per merchant under Merchant branding.

Before pickup, the page never shows a time that has passed or is about to pass.

  • The floor starts when the buffered time is less than 10 minutes away.
  • While it holds, the page shows 10 minutes from now, and the phone range reads 10 - 20 minutes. The page recalculates about every 15 seconds, so the time keeps moving forward.
  • It holds until the order is picked up, however late the order runs.
  • It applies to orders delivered by your own drivers and by fleets your dispatch works, such as Ralph.
  • It does not apply to third-party fleets such as DoorDash and Uber. When their estimate passes, the page keeps showing their time and the phone range reads 10 - 15 minutes.
  • It never applies to completed or cancelled orders.

Example: the estimate is 12:00 and the buffer is 20 minutes. Until 12:10 the page shows 12:20. At 12:10 it shows 12:20, at 12:20 it shows 12:30, and so on. When the driver picks up at 12:31, the page switches to the driver’s estimate, for example 12:44.

At pickup the buffer and the floor stop, and the page shows the drop-off estimate as it is. The estimate is live only when something updates it:

  • Third-party fleets update their own estimate.
  • For your own drivers and for fleets such as Ralph, the estimate updates only when the merchant has real-time arrival estimates on.

With real-time arrival estimates, First recalculates drop-off times with Google Maps from the driver’s location.

  • First turns them on for each merchant. Contact First to turn them on. Every location needs them, including new ones.
  • Estimates refresh about every 5 minutes, and when the driver picks up or drops off.
  • The driver must share their location and have an active run. Only the next 5 stops on a run get an estimate.
  • Without real-time arrival estimates, the ETA after pickup is the estimate made when the order was created, and it can show a time that has already passed.
  • The pickup event ends the floor. If pickup is recorded early or late, the page switches then.
  • The buffer and the floor apply only to the tracking page. Webhooks (estimatedDropoffTime) and API responses carry the unadjusted estimate, and Dispatch’s order views never apply the floor. A late order can look later in Dispatch than on the tracking page.

Branding has two levels. Account settings apply to every order. A merchant’s own header and footer replace the account’s for that merchant’s orders.

Setting Account (Settings → Diner Experience) Merchant (Merchants → merchant) Which one wins
Header image (logo) Yes Yes Merchant, if set
Footer banner image Yes Yes Merchant, if set
Footer banner link Yes Yes Merchant, if set
Accent color Yes No Account
Fields shown on the page Yes No Account
Delivery time buffer No Yes Merchant

These settings are managed in Dispatch. There are no public API endpoints for them.

In Dispatch, open Settings → Diner Experience → Tracking page.

View full size: Diner Experience tracking-page editor beside its live diner preview
Diner Experience tracking-page editor beside its live diner previewOpen full size

The compact editor keeps images, color, and visibility controls beside a live preview. Changes appear in the preview immediately but are not published until you select Save changes.

Group Setting Effect on the tracking page
Images Header image The logo at the top. Use a PNG, JPG, or SVG of 400 x 100 pixels or smaller, under 100 KB.
Images Footer banner The banner at the bottom. No banner is shown when this is empty.
Images Footer link The page that opens when the customer selects the banner.
Brand color Accent color The color of the ETA badge, progress bar, and icons. Pick it or enter a hex code; the preview shows it with white text. Without one, the page uses blue (#1F5EA9).
Visibility Merchant Name Shows the merchant’s name.
Visibility Merchant Phone Shows a button that calls the merchant.
Visibility Driver Name Shows the courier’s name.
Visibility Driver Phone Shows a button that calls the courier.
Visibility Order Details Shows the order’s subtotal and tip.
Visibility Support Widget Shows the support chat, when one is set up for your account.

Select Save changes to apply them.

Only Dispatch users who can manage account settings see Settings → Diner Experience.

In Dispatch, open Merchants, select the merchant, and scroll to Tracking Link.

View full size: Tracking Link section of a merchant in Dispatch
Tracking Link section of a merchant in DispatchOpen full size
Setting Effect on the tracking page
Tracking Link - Header Replaces the account logo for this merchant’s orders. A 4:1 image such as 400 x 100 pixels displays best.
Tracking Link - Footer Banner Replaces the account footer banner for this merchant’s orders.
Footer URL The page that opens when the customer selects this merchant’s banner.
Tracking Link - Delivery Time Buffer Minutes added to the delivery estimate until the order is picked up. See Delivery Time Buffer.

First can text the tracking link to the diner’s phone number as the order progresses. In Dispatch, open Settings → Diner Experience → Diner SMS.

View full size: Diner SMS editor and live phone preview in Diner Experience settings
Diner SMS editor and live phone preview in Diner Experience settingsOpen full size

Turn on Send SMS updates to diners, then choose up to two events. The sender-number row appears while diner SMS is enabled.

Event Sent when
Created The order is created.
Driver Assigned A courier is assigned.
Arrived at Merchant The courier arrives at pickup.
Picked Up The courier picks up the order.
Arrived at Diner The courier arrives at the diner.
Delivered The order is delivered.

Two events are included with your subscription. Picked Up and Delivered suit most accounts. Contact First to turn on more.

Driver Assigned is sent at most once per order in any three-hour window, so reassigning an order does not text the diner again.

Messages go to the diner phone number on the order. If you already send your own notifications, leave every event off and use trackerLink from webhooks in your own messages.

Select the pencil icon next to an event to edit its message, then Save changes. A message can use these variables:

Variable Replaced with
{customer_name} The customer’s name on the order.
{company_name} The merchant’s name on the order.
{tracker_link} The order’s tracking link.
Hi {customer_name} - your order from {company_name} is on the way! Track it at {tracker_link}.

Rules for templates:

  • Use single braces, exactly as written. {{tracker_link}} and variables not in the table are not supported.
  • Use each variable once per message. Only its first occurrence is replaced.
  • Do not use { or } anywhere else in the message. A message with an unreplaced brace is not sent.

To control the exact wording of an event, edit and save its message. An event whose message you have never saved sends First’s standard message:

Event Standard message
Delivered Your order has been delivered! You can view the dropoff photo on the tracker: {tracker_link}
Every other event Hi {customer_name} - your order from {company_name} is on the way! Track it at {tracker_link}.

Messages come from your account’s dedicated messaging number when it has one, and from a shared First number otherwise. Contact First to set up a dedicated number.

Fleets such as DoorDash and Grubhub can text diners their own tracking link, with the fleet’s brand. A diner who gets your text message and the fleet’s sees two different links for one order.

To keep diners on your branded page, open Settings → Diner Experience → Diner SMS and turn off Allow delivery partners to send updates.

  • DoorDash and Grubhub stop sending their own tracking links and text messages for your orders.
  • For Uber and other fleets, contact First.
  • The setting does not remove trackerLinkFleet from webhooks. Do not show that link to diners if you want them on your page.

Sandbox orders have their own tracking page:

https://ordertracker-sandbox.firstdelivery.com/?orderId=<order id>

trackdelivery.io reads production orders only. In sandbox, trackerLink in webhooks and {tracker_link} in text messages still point to trackdelivery.io, which cannot find a sandbox order. To check your branding against a sandbox order, open the sandbox address with that order’s ID.

See Sandbox for the rest of the sandbox setup.

  • Anyone with the link can open it. The page needs no sign-in, so treat the link like the order details it shows: send it to the customer, and do not post it publicly.
  • The page shows the customer’s name and delivery address. It never shows the customer’s phone number. Merchant and courier phone numbers appear only as call buttons, and only when you turn them on.
  • The link stops working one day after delivery. After that, the page no longer shows the order.
  • The link is on a neutral domain. trackdelivery.io does not name First Delivery. Custom domains are not available.

Each sub-operator has its own tracking-link branding, field settings, and message templates, so every partner’s customers see that partner’s brand. Set them while signed in to that sub-operator in Dispatch. See Partner accounts.