In our version of the world, wizard children can't effectively use magic before they are eleven. Therefore, the Trace is probably placed on them at around the age of ten. Since, in the books, nobody has to physically cast the thing on Harry, I assume that it "just happens", without anyone having to come round to do it.