Provided that you enable xAPI when you publish your lesson, the lesson will automatically send a launched statement to the LRS.
(Optional) If want to check that your statements are being sent properly, you can preview xAPI statements while you’re still authoring your lesson.