Forum Discussion

BriceMaret-a1ab's avatar
BriceMaret-a1ab
Community Member
2 years ago

xAPI statement when the lesson is left in the middle

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?