How do services like Flightradar24 and FlightAware track flights?
https://www.flightradar24.com/how-it-works - taken from the FR24 website. They use ADS-B - hence the reason the majority of General Aviation stuff doesn't show (unless it has a mode S transponder).