Skip to main content

Add your tracking page link to the Shopify email template.

How to Redirect Shopify's Tracking Links to Your Store's Tracking Page

Updated this week

This guide will help you update the tracking links in your Shopify store and shipping emails, so your customers are directed to your store's tracking page instead of the carrier's website.


Step 1: Enable Tracking Link Update in Track123

  1. Open the Track123 app in your Shopify store.

  2. Click Settings on the left sidebar.

  3. Find and enable the option Update Shopify's native tracking links.

Once enabled, this feature will automatically update the tracking links in the following places, directing your customers to your store's tracking page:

  • Shipping update emails

  • Thank You page

  • Order detail page

  • Order history page

  • Out for delivery emails

  • Delivered emails


Step 2: Update Tracking Links in Shipping Confirmation Email Template

  1. In your Shopify admin, go to Settings > Notifications > Customer emails > Shipping confirmation > click Edit code

  2. Modify the Tracking Link in the Code. use Ctrl + F (Windows) or ⌘ + F (Mac) to search for:

    <a href="{{ fulfillment.tracking_url }}">

    Replace it with the following code to redirect customers to your Track123 tracking page:

    <a href="{{shop.url}}/apps/track123?nums={{ fulfillment.tracking_numbers.first }}">

    Important:

    If you have customized the URL of your tracking page, make sure to update the code accordingly.

    Example:

    • Original tracking page: https://yourstore.myshopify.com/apps/track123

    • Customized tracking page: https://yourstore.myshopify.com/a/track

    In this case, your updated code should be:

    <a href="{{shop.url}}/a/track?nums={{ fulfillment.tracking_numbers.first }}">

Step 3 (Optional): Remove the Carrier Name from Emails

If you don't want the carrier name to appear in your emails:

  1. Search (ctrl F or ⌘ F) for the following codes below and delete them from the template.

     and fulfillment.tracking_company 

    and

    {{ fulfillment.tracking_company }}

FAQ: Why do I only need to modify the code in the Shipping Confirmation email, but not in other templates?

The Shipping Confirmation email is automatically sent to your customers immediately after the tracking number is uploaded to Shopify. However, due to Shopify's system limitations, we can only modify the tracking link a few seconds after the tracking number is uploaded, not instantly.

As a result, when the Shipping Confirmation email is generated and sent, the tracking link still points to the default carrier website. That’s why you need to manually adjust the code in the Shipping Confirmation email template to make sure the link always redirects customers to your store's branded tracking page.

For other notifications like Shipping Update, Out for Delivery, and Delivered emails, these are sent later during the shipping process. By that time, the Track123 app has already updated the tracking link in your Shopify store, so no manual modification to these templates is needed.


That's all! Once you’ve finished editing the templates, don’t forget to save your changes. Your customers will now be redirected to your store's branded tracking page instead of the carrier's website, creating a more consistent and professional shopping experience.

Did this answer your question?