Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
The place for more technical questions for those who want to create new pagetypes or bespoke functionality.
  • Page:
  • 1

TOPIC:

XAPI tracking individually 3 years 11 months ago #7073

  • Alan
  • Alan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 0
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 Inloggen or Create an account to join the conversation.

XAPI tracking individually 3 years 11 months ago #7074

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
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 Inloggen or Create an account to join the conversation.

XAPI tracking individually 3 years 11 months ago #7136

  • piair
  • piair's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 12
  • Thank you received: 0

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
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
"display": "pierre.gorissen"
in other words, everything in front of the @ixperium.nl
Instead I get
"display": "mailto:pierre.gorissen@ixperium.nl (xAPI Mbox)"

Line 67 of xapi_launch.php =
$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 Inloggen or Create an account to join the conversation.

  • Page:
  • 1
Moderators: JohnSmith
Time to create page: 0.044 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search