Hello everyone,
I’m working with Xerte 3.15 and exporting learning objects (LO) to my LMS as SCORM 1.2 using the following tracking configuration:
- Tracking option: Full tracking of last pass
- Passing score: 50%
- Required time for page completion: 0
- Forced tracking mode: Do not restart session
- “Hide session button”: enabled
- The LO ends with an “End of Unit” page that includes a finish button.
I’m having difficulties getting reliable progress tracking in an external LMS. The LMS provider requires the SCORM package to store two specific variables inside cmi.suspend_data in order to calculate progress:
VarPaginas_totales=XX; VarPaginas_visitadas=XX;
(Translated: TotalPages and PagesVisited.)
Since I could not find any configuration option in Xerte that would allow adding custom values to suspend_data, I tried to solve this by editing xttracking_scorm1.2.js. To meet the LMS requirement, I modified the functions finishTracking(), initTracking() and XTExitPage(). I can provide specific details if needed, but my intention was simply to append the LMS‑required values to suspend_data without disrupting Xerte’s internal logic.
During the first launch after this changes, everything seems to work correctly: the LO loads, tracking updates and the LMS displays the expected progress percentage. However, when re‑entering the SCORM, the LMS shows:
“Unable to find an API adapter”
and the content does not load. The screen remains blank, so Xerte’s JavaScript never starts.
This behaviour only occurs after modifying the tracking script. Without the changes, the package launches normally but does not meet the LMS’s suspend_data requirement.
Before exploring more invasive changes, I would like to ask:
- Am I using a correct (the best?) tracking configuration?
- Is there any way in Xerte to add custom values to cmi.suspend_data without editing xttracking_scorm1.2.js?
- Has anyone successfully implemented LMS‑specific suspend_data formats through configuration rather than code changes?
- Could modifying only these three tracking functions affect re‑entry behaviour in certain LMS environments?
- Has anyone experienced similar issues when adjusting SCORM tracking logic?
I searched the forum but could not find similar cases. Any advice or suggestions would be greatly appreciated. My goal is to meet the LMS requirement in the safest possible way and determine whether Xerte provides a better method than manually modifying the tracking script.
Thank you very much in advance,
Roberto