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

XAPI tracking individually

  • Alan
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 8 months ago #7073 by Alan
XAPI tracking individually was created by 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.

Please Log in or Create an account to join the conversation.

More
5 years 8 months ago #7074 by tom
Replied by tom on topic 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.

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #7136 by piair
Replied by piair on topic XAPI tracking individually

tom wrote: 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.

Please Log in or Create an account to join the conversation.

Moderators: JohnSmith
Time to create page: 0.135 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo