Removed duplicated GA code