Overview
AfterShip Tracking lets you personalize your tracking pages by embedding merge tags like |TRACKING_URL| into the content. Merge tags are placeholders that dynamically insert specific tracking or order information into the page, providing a more personalized experience for your customers.
How do the merge tags work
Merge tags pull in important tracking details, such as the carrier's name or phone number, and display them on your tracking page for each specific shipment/order.
How to add merge tags to tracking pages
You can add merge tags in various sections of your tracking page. Below are the locations where you can insert them:
Page | Section/Block Name | Location |
Shipment results page / Recipient Page | Text | Description |
Shipment results page / Recipient Page | Header | Store URL |
Shipment results page / Recipient Page | Header message | Description |
Shipment results page / Recipient Page | Footer message | Description |
Shipment results page / Recipient Page | Status description | Description |
Shipment results page / Recipient Page | Image with text | Description |
Shipment results page / Recipient Page | Image with text | Destination URL |
Shipment results page / Recipient Page | Image | Destination URL |
For example, let’s look at the Text block:
Go to the Tracking pages section in your AfterShip Tracking admin.
On the tracking page where you want to insert merge tags to auto-populate relevant customer, order, and shipment-related information, click the {...} icon. Select Edit.
Navigate to the Section/Block where you want to add merge tags. Go to the Text block and navigate to Description.
Click on the Insert merge tag {...} icon and select the tag you want to add to the page.
List of available merge tags
If a merge tag doesn’t have a value, it will display “Not available” on the tracking page.
Merge tag | Description |
TRACKING_NUMBER | Displays the shipment's tracking number. |
LAST_MILE_TRACKING_NUMBER | Shows the last-mile courier's tracking number in multi-leg shipment scenarios. |
CARRIER_NAME | Displays the carrier’s name. |
LAST_MILE_CARRIER_NAME | Shows the name of the last-mile carrier in multi-leg shipments. |
CARRIER_TRACKING_LINK | Provides the carrier’s tracking URL. |
LAST_MILE_CARRIER_TRACKING_LINK | Provides the last-mile carrier’s tracking URL for multi-leg shipments. |
CARRIER_REDIRECT_LINK | Provides a URL to redirect the parcel to a different carrier. |
LAST_MILE_CARRIER_REDIRECT_LINK | Provides the URL to redirect the parcel to the last-mile carrier. |
CARRIER_EMAIL | Displays the carrier's email address. |
LAST_MILE_CARRIER_EMAIL | Displays the last-mile carrier's email address. |
CARRIER_PHONE_NUMBER | Shows the carrier’s phone number. |
LAST_MILE_CARRIER_PHONE_NUMBER | Shows the last-mile carrier’s phone number. |
ORDER_NUMBER | Displays the order number associated with the shipment |
CUSTOM_FIELD | Displays custom fields that you've created via API, CSV, or Admin. For example, if you’ve added a custom field like "store_name", you can use it in notifications like “Your order from STORE_NAME is on the way.” |

