Travik's parents were peasants who were killed in the Nilfgaardian invasion of the Northern Kingdoms. He later ended up in the care of Gran in Crookback Bog, as did many other children orphaned by the war. There, he made friends with a godling named Johnny, whom he directed Geralt to when the witcher was searching for Ciri in Velen.
If Geralt freed the Ghost in the Tree: Travik, along with all the other orphans from Crookback Bog, was saved by the Ghost from the Crones. The orphans later ended up in Novigrad, and were placed under the care of Marabella at her school.