GUIDE: Send an xAPI Statement from Storyline 360
Feb 24, 2019
By
Devlin Peck
Hello everyone! I've written up a 3-part tutorial series that walks you through how to send custom xAPI statements from a Storyline (2, 3, or 360) course. You don't need any prior JavaScript knowledge, and this series has helped dozens of others send their first statements.
Even if you have already sent custom statements, giving the first tutorial a read will give you a pretty solid understanding of an xAPI statement.
Well, here they are!
Part 1: Write an xAPI Statement from Scratch
Part 2: Collect the User's Name & Email from Storyline
Part 3: Send an xAPI Statement from Storyline
As always, let me know if you run into any trouble or have any additional questions.
17 Replies
Good Job, Devlin. Thanks for sharing the post.
Very nicely explained... Thank you very much Devlin :)
Can you also let us know how we can show the data in storyline... like a survey results
Hi Srinivas! That is definitely the other piece of this, but it is a bit more complex. I will be writing additional xAPI learning resources, so you can expect that at some point in the future :)
Well written, Devlin.
Thank you for sharing the post.
Hi Devlin, I just came across this. It's helped my understanding of xAPI hugely so thanks for taking the time to write it.
I've just followed all the instructions, pressed submit and... nothing. I can't figure out where I'm going wrong! Could any xAPI guru's take a look to help me understand the issue? Files attached for reference. The statement doc is helpfully called "statement1.js".
Hi Devlin,
Thanks so much for this. I came across your writeup while trying to accomplish something similar and your explanation has been tremendously helpful. I followed the instructions in an attempt to get this to work, but when I hit submit nothing happens, much like Vincent describes above. I'm hoping someone might have an idea of where I'm going wrong with this. I'm going to attach my output files for reference as well. Thanks in advance!
I have the same issue as Vince and Brian. The instructions were nice and clear - unfortunately it does not seem to work - at least for us 3. Can anyone help?
Hi folks! Sorry for the late response...it has been a busy year! I've been digging around in your Storyline outputs and am not finding any issues off the bat. Can you share the .story files that you used, too? That will help with troubleshooting.
Thanks for looking at things. I sorted out my issues - user error! Your instructions work great :)
Thank you Devlin! I got it working as well. I appreciate your help, and thanks again for the writeup.
That’s great to hear! Do either of you remember which issue you were having? If so, maybe you can share what was wrong and how you fixed it in case others run into something similar.
For me it must have been endpoint and/or secret. I was having issues using SCORMCloud but when I went to Watershed it worked fine.
I put together a "common issues" troubleshooting guide in case anyone else is having trouble sending their statements: https://www.devlinpeck.com/posts/xapi-storyline-troubleshooting
I am also writing additional xAPI & Storyline tutorials, and you can find the full list of them here: https://www.devlinpeck.com/tutorials/full-guide-xapi-storyline
Great work, super helpful, thanks.
Hi Devlin, I had another crack at it and used your troubleshooting guide and success! It worked. Thank you so much for this. I'm taking a look at your intermediate tutorials next...
I think i'd gotten in a muddle over the brackets of my objects.
Hi! Just worked through your first few tutorials and they worked great! Thanks for putting those up for us.
Hi Devlin, I am stuck on an issue wherein we have used custom variables in the storyline package but am unable to report the score raw values to the LRS. Keep getting errors related to Score not being a Number. Any guidance on this?
The variable is set to Number for sure.