G is an earlier-developing sound; many U.S. children produce it reliably by around age 3 to 4.
Every child is different, and age ranges from research are guides, not deadlines. If your child is frustrated, hard to understand, or you're unsure, ask a speech-language pathologist.