The tracking code is set on the order when the order status is SHIPPED. Here you can find some helpful details on how to track your orders.
Tracking the "old school" way
If the selected shipping method provides tracking, the tracking number is synced from warehouse WMS to myOGO once your order is shipped, and from myOGO to your online store in case it supports it. In myOGO you may find the tracking links on the orders listing page as well as in the individual order page at the bottom.
Bear in mind that most freight companies register the tracking code on the same day or on the next work day.

Tracking pages for some carriers provided as examples
OGOship Tracking
OGOship tracking is the standard level of service for tracking shipments!
OGOship tracking is a proactive solution that provides a seamless order-tracking experience. Parcel tracking begins instantly, saving time and resources by reducing customer inquiries and support backlog.
It provides a centralized tracking with email and SMS notifications and localization options and give the opportunity for your customers to track their shipments from a unified platform instead of relying on various last-mile carrier tracking pages.
You can personalize the portal with your brand logo and color for a cohesive brand image.
You can modify the texts, images, colors and buttons on the tracking page you create a look just for your store.
OGOship Tracking in myOGO Order Management View
As a merchant, you can track the live status of every shipment directly from the order list in myOGO, without opening individual orders. Each order row shows a shipment status icon that updates in real time as the parcel moves through the delivery lifecycle.