xAPI statement when the lesson is left in the middle

Mar 28, 2023

Hi everyone! 
I'm currently looking for a solution to send an xAPI statement when someone is leaving the page/tab/browser in the middle of a lesson. 

I started using some Javascript (beforeunload event) to check and for now, it works. But I'm not managing to send an xAPI statement before it closes.

Does someone have an idea?

2 Replies