BranchTrack Total Score

jmohr4076
Community Member Posts: 32 ☆ Roadie ☆
Has anyone figured out how to get the total score of the BranchTrack scenario using variables in Lectora? The built in variable only tells the score of the particular scene (+10, +20, etc). I want to force the user to score at least a total of 75 points. I just can't get Lectora to capture that total amount at the end. Any ideas?
Comments
-
Hi! I had the same issue and it turned out that Lectora wasn't properly reading the BT score. The folks at branch track had me do the following:
We have a fix for the +score issue:
1) Create a variable BT_Score_Fix
2) Create action On Page Show - Run Javascript - paste the following code:
// make Lectora listen for BranchTrack events
window.parent.addEventListener(‘message’, function(message) {
data = JSON.parse(message.data);
VarBT_Score_Fix.set(data.details.playlog.score);
});
Now the “BT_Score_Fix” variable will always contain the correct amount of points (when also subtracting) and the +points (score) will be actionable.
This fix worked in IE and Chrome up until January. I believe the last two lectora updates have caused this to stop working again when I republished. I was hoping lectora 17.1.2 would fix the issue, but it didn't. I have a ticket in with BranchTrack and Trivantis.
Categories
- 35.8K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products