Skip to main content

How to Replace Tracking Number with "CLICK HERE" Link in Shopify Email Notifications

If you'd like to replace the visible tracking number in your Shopify email notifications with a "CLICK HERE" link that redirects to the tracking page, you can follow the steps below.

Updated today

Note: This customization only works when there is a single tracking number in the order. If there are multiple tracking numbers, this change will not apply.

Steps to Update Email Template

  1. Go to your Shopify Admin
    Navigate to Settings > Notifications > Customer Notifications

  2. Select the Email Notification You Want to Edit
    For example, choose Shipping Confirmation or Shipping Update, depending on where you want the change to appear.

  3. Click “Edit Code”
    At the top right corner of the notification editor, click on the Edit Code button.

  4. Search for the Tracking Info


    In the code editor, use the search bar and look for the following line:

    fulfillment.tracking_company
  5. Replace the Tracking Number Code


    Find the line that looks like this:

    {{ fulfillment.tracking_company }} tracking number: <a href="{{ fulfillment.tracking_url }}">{{ fulfillment.tracking_numbers.first }}</a>

    Replace it with:

    <a href="{{ fulfillment.tracking_url }}">Click here</a>
  6. Save Your Changes
    Once updated, save the notification template.


Result

After completing the steps above, customers will see a simple "Click here" link instead of the full tracking number in their email. Clicking the link will redirect them to the appropriate tracking page.

Did this answer your question?