Once the "Web" Stream is created in GA4, the tracking code can be found under “Web stream details” section.