How to add a tracking link to Shopify email templates?

Add a tracking link to your Shopify email templates. This will allow customers to track their orders directly on your store’s tracking page with a single click.


Currently supported in the following 4 Shopify email templates:

Shipping confirmation, Shipping update, Out for delivery, Delivered


Here’s what the Shipping confirmation email looks like after completing the steps below:



Here is the instruction

Step 1

Go to Shopify adminSettingsNotificationsCustomer notifications → select the template where you’d like to add the tracking link (e.g. Shipping confirmation) → click the Edit code button


Step 2

Make sure Email body (HTML) is checked → search (Ctrl + F or ⌘ + F) for the phrase View your order → replace all with Track your order

Note: If you’re editing the Out for delivery email template, search for the phrase Track my shipment instead of View your order


Step 3

Make sure Email body (HTML) is checked → search (Ctrl + F or ⌘ + F) for the phrase {{ order_status_url }} → replace all with the code below:

{{ shop.url }}/apps/parcelpanel?nums={{ fulfillment.tracking_numbers.first }}

Note: If you’ve changed the tracking page URL, please update the old URL /apps/parcelpanel in the code to match your new URL.

For example, if you’ve updated it to /a/tracking, then you should use the following code:

{{ shop.url }}/a/tracking?nums={{ fulfillment.tracking_numbers.first }}


Step 4

Save your changes



Related article: How to remove the tracking number from Shopify email notifications?

Need help? Feel free to contact us via online chat or email, our world-class 24/7 support team is always glad to help you 🧐