Domestic vs international tracking numbers
You can often tell from the shape of a tracking number whether a parcel was sent within one country or across borders.
International postal items
Items sent by post between countries use the international S10 shape: two letters, nine digits, two letters, like CP123456785DE. The last two letters are the country of the postal service that registered it. The same number works in both countries' tracking systems. See endings by country.
Domestic postal items
Inside one country, postal services often use their own longer numeric formats. For example USPS uses 20 or 22 digit numbers, and other postal services have their own formats. These numbers are usually tracked only on that postal service's site.
Courier parcels
Courier companies (UPS, FedEx, DHL Express and others) use the same format whether the parcel crosses a border or not. The format tells you the company, not the route.
Mixed journeys
Many online orders travel with a logistics company first and a local carrier for the last part. You may get one number for the whole journey, or a second number once the local carrier takes over. If tracking goes quiet, read why tracking stops updating.