Hi, how can I keep the motion path visible in the render?
You can't 'Render' it. You need to render the viewport.
Click the clapper button in the header/footer.
(the button in the very right in this image)