Follow Along With These 3 Getting Started With xAPI Tutorials
Melissa Milloway
Designing Learning Experiences That Scale | Instructional Design, Learning Strategy & Innovation | Exploring What’s Next
In an effort to create more adoption of xAPI, I wanted to help demystify it a bit by creating tutorials on getting started with xAPI.
In this first video, I go through Anthony Altieri's Getting Started With xAPI tutorial. In the second video, I alter Anthony's script to pass parameters into the xAPI statement structure. In the third video, I move all of the JavaScript to its own file and write the inline onclicks in jQuery and add them to the JavaScript file.
You really don't have to worry about the second two videos, they are just so you can see my process of altering scripts to make them more efficient to use.
The tutorial will have you fill in your LRS (Learning Record Store) information to create a basic auth (allowing access to your LRS). It will also have you add in two files. You can use any LRS you like, that's the beauty of xAPI. It doesn't matter what LRS you use, as long as you have one. You can copy and paste Anthony's code into an HTML document and see the magic happening!
What you'll need for the tutorial:
- A code text editor like Sublime Text.
- Anthony's tutorial.
- GitHub xAPI documents to download.
- An LRS. In this example I used a trial of Yet Analytics LRS. You can also get a free version of Learning Locker up and running by taking this MOOC.
- OPTIONAL: Download the 3rd and final video's scripts and try it out yourself.
Going through Anthony's tutorial
Passing parameters to fill in your xAPI statement
This next tutorial covers me altering the script so it's a bit more easy to apply to many buttons and other events that might happen in the page. Instead of having to copy the entire send statement function again and rewrite it for every new statement, I can pass parameters that I want to happen for different events.
Creating a new JavaScript file and adding jQuery
Finally, in the last video, I take all of the script work I did to pass parameters into the xAPI statement and I place the script in it's own document. That makes the code easier to read. Then I rewrite the inline JavaScript onclicks as jQuery. You can download the final script here. I also listed the download in the What You'll Need section above.
-Mel
Developer Full Stack na Fiocruz
5 年Really nice tutorial. Simple and helpful. Thanks!
"Product Manager | Leveraging Lean Analytics & Agile Methods | Experienced in Learning Experience Design & Web Development"
5 年Can we use python as an alternative to java script.
Learning & Development Leader | I help companies unlock the performance potential of their employees and create learning systems and programs to optimize ROI by $10k-$2M+
7 年Awesome share as always Melissa Milloway, MSIT. I wanted to give a nod to the LRS MOOC from HT2 Labs you noted in your article. It is a spectacular way to get some hands-on xAPI experience, and have an LRS playground. And even a time-strapped, button-pusher like me got an LRS up and running, so that goes to show you how well it works.
Launch Marketing for Startups | 4 X unicorns ?? … Follow to shortcut your marketing journey
7 年IT'S ALIVE!!!
Experienced Leader | Transforming Personal Lines Client Services with Operational Expertise
7 年THANK YOU for this Melissa! I have wanted to investigate xAPI since you spoke at the Articulate Roadshow and didn't know where to begin! I can't wait to try this!