Blog Archive

USPS Tracking number link url - html sample code

If you have the USPS Tracking Number and want to put a direct link for users on your website to click and see the tracking details then put the following code your web page and merge the tracking number

Example Code for USPS Tracking

<a href="http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum={tracking_number}"  
 target="_blank">
        {tracking_number}
</a>
Replace {tracking_number} with actual USPS tracking Number


5 comments :

  1. The USPS Url redirects to:

    https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1={YOUR TRACKING NUMBER}

    ReplyDelete
  2. Thanks. This is awesome! Just what i needed.

    ReplyDelete
  3. Yes, URL suggestion above (3-24-12) WORKS as of 6-1-13. THANKS!

    ReplyDelete
  4. https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=[Tracking Code 1]&qtc_tLabels2=[Tracking Code 2]

    If you have 2 Tracking Codes to follow.

    To add another, add &qtc_tLabelsX=[Tracking Code] and replace X with the next Label number.

    ReplyDelete