Gamification without analytics is theatre. Every point, retry and drop-off is a signal. Use it to change the course, not to print a vanity dashboard.
Events worth logging
Start, fail, retry, complete, help used. That is enough to see the cliff. More events without a question are storage bills.
From chart to change
If 70% fail the same item, the item is wrong or the teaching before it is. Fix that. Do not add a motivational quote.
Privacy
Learning data is still personal data. Collect what you need for the lesson. Say so. Delete on a schedule.