Most studies in children with autism spectrum disorder (ASD) support a decrement in imitation performance. Factors related to visual attention and motor execution have been proposed to explain this phenomenon in ASD. However, studies investigated imitation with various methods, leading to inconsistent findings. Here, we examine imitation performance related to visual attention and motor execution. We focused on the imitation of meaningful and meaningless gestures, consistently reported as more affected than imitation of actions with objects in ASD. The imitation eye-tracking task consisted of a video of an actor demonstrating gestures and prompting children to imitate them. The demonstrations comprised meaningful and meaningless hand gestures, and meaningless facial gestures. We measured the fixation duration to the actor' face during child-directed speech and gesture demonstrations. We video-recorded children to assess their performance. Our sample comprised 100 participants (3.55 ± 1.11years old), including 84 children with ASD. The ASD and typically developing groups displayed the same visual attention toward gesture demonstrations, although children with ASD spent less time looking at the face during facial stimuli. Visual exploration of actors' gestures did not influence imitation performance. Imitation of meaningful gestures was associated with less severe autistic symptoms, whereas imitation of meaningless gestures was correlated with higher non-verbal cognitive and fine-motor skills. These findings contribute to a better understanding of the complexity of imitation. We delineated the distinct nature of imitation of meaningful and meaningless gestures in children with ASD. We discuss clinical implications in relation to assessment and intervention programs.