How to add a tracking link to Shopify email templates?

You can add a tracking link to your Shopify email templates so that your customers can track their orders on your store tracking page by clicking the tracking link in the emails.

Currently, it is supported for the following Shopify email templates:

  • Order confirmation
  • Shipping confirmation
  • Shipping update
  • Shipment out for delivery
  • Shipment delivered

Here is what Order confirmation email looks after you completed the steps below:

logo

Step 1
Go to your Shopify adminSettingsNotifications → choose an email template which you'd like to add a tracking link (e.g. Order confirmation)

Step 2
Make sure the Email body (HTML) checked → search (ctrl F or ⌘ F) for the phrase View your order, replace it with Track your order

20220826_135504.png

Note: If you're in the Out for delivery email template, please do a search for the phrase Track my shipment instead of View your order.

Step 3
Make sure the Email body (HTML) checked → search (ctrl F or ⌘ F) for the phrase {{ order_status_url }}, replace it with this code below:

{{shop.url}}/apps/parcelpanel?order={{ order.name | remove: '#' }}&token={{ email | split: '' | reverse | join: '' | replace: '@', '_-_' | url_encode }}

20220826_135805.png

Step 4
Make sure the Email body (HTML) checked → search (ctrl F or ⌘ F) for the phrase Visit our store, there will be two parts that have this phrase, replace all with View your order.

20220826_140008.png

Step 5
Make sure the Email body (HTML) checked → search (ctrl F or ⌘ F) for the phrase {{ shop.url }}, there will be two parts that have this phrase, replace all with this code below:

{{ order_status_url }}

20220826_140203.png

Step 6
Save your changes

20220826_140254.png