# Shipment Tracking

Shipment tracking details can be added to the emails sent to customers to track their shipments.

#### Step 1: Update shipment tracking in WooCommerce panel

Navigate to **WooCommerce** > **Orders** > on the **Edit order** screen, you will see a new meta box for shipment information.

![](/files/dX3FoFBikuuha9cqvdSk)

Once you fill the details and save tracking, you will see a new tracking number.

![](/files/Yd5wOKaYLCB3NHbAQXJA)

Marking the order as Complete will send the Completed Order email to the customer, including the shipment tracking code.

#### Step 2: Add shipment tracking details to email template in YayMail panel

In YayMail email builder, choose **Completed Order** email, drag and drop a Text block to the email template.&#x20;

On the text editor, you will see a **Shortcode** dropdown > choose **Order Meta** and pick the shipment tracking order meta shortcode. This will automatically insert a shipment tracking table into the customized email template.

![](/files/CZh5kujjVRxEpa9MkWG7)

#### Step 3: Preview email template including shipment tracking info

If you already have previous completed orders with shipment tracking information, you can choose a specific order email to view it.

Within YayMail builder, choose **Sample order to show**, select a customer or order number from the dropdown, and you will see the whole email template with the order history details.

![](/files/JScnUytSaCUxreKMqLyF)

After completing the steps above, whenever you change the order status to Complete, your store will send the Completed order email to the customer, including the shipment tracking code.

{% hint style="info" %}
This tutorial uses screenshots from WooCommerce Shipment Tracking extension, but the setup principle is pretty much the same if you're using one of these plugins:

* Advanced Shipment Tracking (by Zorem)
* Shipment Tracking Pro (by PluginHive)&#x20;
* YITH WooCommerce Order Tracking
* TrackingMore Parcel Tracking plugin

For [TrackShip](https://wordpress.org/plugins/trackship-for-woocommerce/) plugin, it requires [YayMail Addon for TrackShip](https://yaycommerce.com/yaymail-addons/yaymail-addon-for-trackship-for-woocommerce/).
{% endhint %}

**Bonus:** \
You can use partial shipment and show products which has shipped.\
Please drag 2 elements: Tracking Item and Items Shipment.

![This screenshot uses YayMail Pro and Advanced Shipment Tracking by zorem](/files/GgjqEqJR43urGbcXTozQ)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yaycommerce.com/yaymail/integrations/shipment-tracking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
