Articles on: Branded Tracking Page

Use Merge Tags to Personalize Tracking Pages

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.

What you'll learn



In this tutorial, we'll discuss:

How do the merge tags work
How to add merge tags to tracking pages
List of available merge tags

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.

Insert merge tags in tracking pages

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:

PageSection/Block NameLocation
Shipment results page / Recipient PageTextDescription
Shipment results page / Recipient PageHeaderStore URL
Shipment results page / Recipient PageHeader messageDescription
Shipment results page / Recipient PageFooter messageDescription
Shipment results page / Recipient PageStatus descriptionDescription
Shipment results page / Recipient PageImage with textDescription
Shipment results page / Recipient PageImage with textDestination URL
Shipment results page / Recipient PageImageDestination URL


For example, let’s look at the Text block:

Go to Tracking pages section in your AfterShip Tracking admin.
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.

Insert merge tags in a tracking 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 tagDescription
TRACKING_NUMBERDisplays the shipment's tracking number.
LAST_MILE_TRACKING_NUMBERShows the last-mile courier's tracking number in multi-leg shipment scenarios.
CARRIER_NAMEDisplays the carrier’s name.
LAST_MILE_CARRIER_NAMEShows the name of the last-mile carrier in multi-leg shipments.
CARRIER_TRACKING_LINKProvides the carrier’s tracking URL.
LAST_MILE_CARRIER_TRACKING_LINKProvides the last-mile carrier’s tracking URL for multi-leg shipments.
CARRIER_REDIRECT_LINKProvides a URL to redirect the parcel to a different carrier.
LAST_MILE_CARRIER_REDIRECT_LINKProvides the URL to redirect the parcel to the last-mile carrier.
CARRIER_EMAILDisplays the carrier's email address.
LAST_MILE_CARRIER_EMAILDisplays the last-mile carrier's email address.
CARRIER_PHONE_NUMBERShows the carrier’s phone number.
LAST_MILE_CARRIER_PHONE_NUMBERShows the last-mile carrier’s phone number.
CUSTOM_FIELDDisplays 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.”

Updated on: 05/02/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!