The place for more technical questions for those who want to create new pagetypes or bespoke functionality.

XAPI tracking individually

Plus d'informations
il y a 5 ans 8 mois #7073 par Alan
XAPI tracking individually a été créé par Alan
When tracking the Xerte tasks, is there a way to have the tasks tracked per user?
So instead of '/group1', could it be '/AlanHow' for instance?
So that the user can be marked individually.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 ans 8 mois #7074 par tom
Réponse de tom sur le sujet XAPI tracking individually
The challenge is to get the actor into Xerte, but yes you can:

1. Specify the actor in in the launch_xapi.php ULR, i.e. &actor=<email address'. The actor needs to be an email address.
2. Use LTI and specify whether you want to record only the email, an email hash or the name plus email.

To use LTI, plublish the Xerte LO as LTI (in the properties->xAPI/LTI and configure an LTI tool in your favouratie LMS.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 ans 7 mois #7136 par piair
Réponse de piair sur le sujet XAPI tracking individually

tom écrit: 1. Specify the actor in in the launch_xapi.php ULR, i.e. &actor=<email address'. The actor needs to be an email address.

If I do this, eg
Code:
https://xerte.myserver.com/xapi_launch.php?template_id=19&group=test&actor=pierre.gorissen@ixperium.nl
then, (looking at the source of xapi_launch.php) I would expect the resulting xAPI statement to have
Code:
"display": "pierre.gorissen"
in other words, everything in front of the @ixperium.nl
Instead I get
Code:
"display": "mailto:pierre.gorissen@ixperium.nl (xAPI Mbox)"

Line 67 of xapi_launch.php =
Code:
$xapi_user->displayname = substr($xapi_user->email, 0, $pos);
Is this value changed somewhere else in the code?

Note: I've got a workaround where I use jquery and cloudflare to get the IP-address of the user, base64 encode that and attach that dynamically as groupname of the link used for the iframe. Works okay as a method of tracking not logged in users in a situation without LTI (although IP may change etc). Will post that code when it is cleaned up a bit.

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: JohnSmith
Temps de génération de la page : 0.135 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo