Throughout the entire series, the general public never discovers Danny Fenton's secret identity as Danny Phantom. Only his close friends (Sam, Tucker), sister Jazz (later), and a few villains (Vlad, later Valerie) know. The finale (Phantom Planet) keeps his identity hidden from the world.
This secrecy is central to the show's tension—Danny protects Amity Park as a ghost while navigating high school as a human.