How to remove tracking numbers from Shopify native email notifications?

A customer who gets a tracking number from Shopify tracks their order on the carrier's site instead of yours. Here is how to remove it.

Tutorial

Go to Shopify Notifications settings

In your Shopify admin, go to Settings > Notifications.

Edit the Shipping confirmation template

Scroll down to the Shipping section and click on Shipping confirmation.

Remove the tracking number code

In the template editor, remove or comment out the blocks that display tracking numbers:

{% if fulfillment.tracking_numbers.size > 0 %}
  ...
{% endif %}

And/or:

{% if fulfillment.tracking_url %}
  ...
{% endif %}

To comment out rather than delete, wrap the block:

{% comment %}
  ... tracking code here ...
{% endcomment %}

Repeat for Shipping update

Repeat for the Shipping update template.

Save

Click Save on each template. Your customers now track their orders on your store only.