Combining custom and out-of-the-box xapi statements

Hi everyone

The out-of-the-box xapi statements that storyline sends out when publishing for xapi are nicely reported in Scormcloud. I've also had success when publishing for HTML/SCORM and sending custom xapi statements to Yet LRS. I think both options are really cool to play around with. However I would like to combine the ease of use of the out-of-the-box xapi statements with the flexibility of tracking whatever I want with custom xapi statements. 

Can anybody confirm if this is possible and send me in the right direction on how to do it? 

With kind regards

2 Replies
Doug Nelson

Hi Anneleen,

It's completely possible. If you publish as an xAPI package you'll get the "out-of-the-box" statements. And then you can add custom statements via Javascript for individual objects, triggers, etc. that will get sent separately to the LRS. 

I found this series of video tutorials very helpful for learning how to insert custom statements into Storyline via the "Execute Javascript" trigger. It's based around using the tool to construct the statements, but you can construct them manually and use the same approach:

Fiona Macelli

Hi Anneleen, did you get anywhere with this effort?  I am wondering also how to mix the default xAPI statements that Storyline constructs to report on graded questions, while adding my own custom statements.  

The tutorials that Doug mentions, and all others that I've looked at, tell you how to do one or the other only.  I think what I want though is one file (probably the tincan.xml file that's produced when you export from Storyline as xAPI) that has both out-of-the-box statements AND custom statements, so that the LMS/LRS reads them as one cohesive data set.

Have you been able to do this, or does anyone else know how to create a combined output?  I assume that the activity ID has to correspond with the one that Storyline will use, and I don't know which other elements need to be in the javascript in order to have it combine nicely with the out-of-the-box statements. I'm a beginner coder and I'm trying to use the xAPI compatible LMS "LearnUpon".