move GA code according doc