Use the following code to add a tracking number to an existing shipment.

Adding tracking information to a shipment
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.
Tags: