VR Course Contest
Show us your best virtual reality course and win $50 gift card and a winner badge!
CHECK IT OUT
TinCan xAPI call on hyperlinked text?

joejubee
Community Member Posts: 319 ♪ Opening Act ♪
Ok, so I'm in the middle of putting together my first xAPI-based course. My first question (of, I'm sure many) is, "How do I send a xAPI statement on hyperlinked text?" I want to track how many people click on a link in my course, but I'm not sure how to do that on hyperlinked text.
Obviously, on a button element, you can add multiple actions (the on-goto action, and the send xAPI statement) but on hyperlinked text, you can only add one action.
Any ideas?
Thanks,
Joe
Obviously, on a button element, you can add multiple actions (the on-goto action, and the send xAPI statement) but on hyperlinked text, you can only add one action.
Any ideas?
Thanks,
Joe
0
Comments
-
Ok, so I can create an action group that does the hyperlinking and the xAPI calls, but I have to think that there is a better way. In that situation where I had a page with say, 20 links that I wanted to track, I'd have to create 20 groups with all that other nonsense...
I'm thinking that there should be some global command that says essentially, onClick - Send Statement - Interacted - "ObjectName" or something like that where Lectora used some action/variable thingy to pull the object name into a sendable format.
Thanks.0 -
The one action can be "Run action group" which may contain any number of actions.
Tim0 -
Thanks Tim - yea, I know you can do that, but there has to be an easier way than adding action groups all over the place, ya know? Some global action... Thanks!0
-
I don't know too much about xAPI, but I suppose it should be possible to use a Lectora variable, e.g. "Link" for the hyperlink someone clicked and one action group to set the xAPI statement. The hyperlink should "Run javascript" with:
VarLink.set("Enter something to identify the clicked link"); runGroup_og123();
Replace og123 with the html name of the group.
The xAPI statements object (in the group) would be VAR(Link)
Tim0 -
Action groups are the way to go if you need to have more than one action on a hyperlink.
As Tim mentioned, if you were doing just about the same action each time and just changing one thing, for instance the object of an xAPI statement, you could use the JavaScript to call both, but I would think it would be more maintainable just having an action group for each.0 -
Thanks, for the info, guys!0
Categories
- 4.4K All Categories
- 35 ✫ Announcements
- 6 ✪ Contests
- 34.1K eLearning Brothers® Products
- 104 Lectora®
- 1.1K Lectora Discussions
- 1.9K Lectora Feature Requests
- 53 Lectora User Groups
- 2 AssetLibrary™
- AssetLibrary Discussions
- 2 AssetLibrary Feature Requests
- 69 CenarioVR®
- 111 CenarioVR Discussions
- 78 CenarioVR Feature Requests
- 2 Rockstar Learning Platform®
- 1 Rockstar Learning Platform Discussions
- 1 Rockstar Learning Platform Feature Requests
- 4 Off-the-Shelf Course Library
- 3 Off-the-Shelf Course Library Discussions
- 1 Off-the-Shelf Course Library Feature Requests
- 1 CourseMill®
- 101 CourseMill Discussions
- ReviewLink®
- 21 ReviewLink Discussions
- 12 ReviewLink Suggestions
- 1 The Training Arcade®
- 1 The Training Arcade Discussions
- The Training Arcade Feature Requests
- 7 Additional Learning Products
- 2 Adobe®
- 2 Articulate®
- 1 Camtasia®
- Docebo®
- 1 iSpring®
- 1 Microsoft® PowerPoint®
- 293 All Things eLearning
- 3 Course Development Showcase
- 1 eLearning Brothers® Downloads
- 1 Compliance Training
- 5 eLearning Development
- eLearning Game Design
- 7 Instructional Design
- 266 Learning Management System (LMS) Integration
- 2 Mobile Learning
- 2 Visual Design
- 319 Web Accessibility
- 579 ♪ The Green Room
- 3 ♡ Community Feedback
- 6 Community Tips