Analytics Nodes
These nodes allow you to send analytics data and manage xAPI statements. They are provided by the Virtuademy-SDK-Environments package.
In the Back Office, Analytics > Experiences lists a run under the context that its start event (ExpStart) carries, not under the label of the Experience. Make the context a stable, readable title, for example the name of the training: it is the name users of the Back Office read in the list, and the list is searched by it.
To send analytics from a C# script instead of a graph, see Analytics from a script.
Flow Nodes
Create Displayable Data Node
🔍
Virtuademy>Create>Virtuademy Analytic: Create Displayable Data
This Node creates an analytics displayable data object that can be used to display analytics information.
The inspector properties are:
-
DisplayableType, an enum that determines the type of displayable data (default:
Dynamic). The input ports are dynamically generated based on the selected type. -
⬆️ Output:
- DisplayableData (
AnalyticsDisplayableData), the created displayable data object.
- DisplayableData (

Generate ExperienceID Node
🔍
Virtuademy>Flow>Virtuademy Analytic: Generate ExperienceID
This Node generates a unique Experience ID (GUID) for analytics tracking. This is an awaitable node.
- ⬇️ Input:
- Key (
string), a string key for the experience (max 15 characters).
- Key (
The key may contain only the characters 0-9, A-Z, a-z, ? and !. With any other character, an underscore or a dash for example, the request for the id never completes: nothing is sent, and the log shows no error. This is a known limit of the platform today.
Send Data Node
🔍
Virtuademy>Flow>Virtuademy Analytic: Send Data
This Node sends analytics data to the analytics system.
The inspector properties are:
- Verb, the analytic verb to send (ExpJoin, ExpStart, StepStart, StepComplete, ExpComplete, ExpTranscript). The input ports are dynamically generated based on the selected verb
- SendToXAPI (
bool), a boolean to enable xAPI statement sending (default:false). When enabled, additional input ports appear:- statement (
XAPIStatement), the xAPI Statement to send - context (
string), a string context for the statement.
- statement (

Create XAPIObject Node
🔍
Virtuademy>Create>Virtuademy Create:XAPIObject
This Node creates an xAPI Object with dynamically generated input ports based on the XAPIObject type properties.
- ⬆️ Output:
- NewValue (
XAPIObject), the created xAPI object.
- NewValue (
Create XAPIStatement Node
🔍
Virtuademy>Create>Virtuademy Create:XAPIStatement
This Node creates an xAPI Statement with dynamically generated input ports based on the XAPIStatement type properties.
- ⬆️ Output:
- NewValue (
XAPIStatement), the created xAPI statement.
- NewValue (
Create XAPIVerb Node
🔍
Virtuademy>Create>Virtuademy Create:XAPIVerb
This Node creates an xAPI Verb with dynamically generated input ports based on the XAPIVerb type properties.
- ⬆️ Output:
- NewValue (
XAPIVerb), the created xAPI verb.
- NewValue (
Recipe: measuring time
The analytics events carry a score, not a duration, so a training that measures time sends its seconds as the score:
- Step. Note the time when the step starts and, in the StepComplete event, send the seconds the step took as the score. Leave maxScore (and passingScore) empty: a time has no maximum.
- Run. In the ExpComplete event, send the total seconds as the score, again with no maxScore.
- The Back Office works out the duration of the run by itself, from its start to its completion (see Experience Analytics).
In a script, the payload of a step then sets only the fields it needs (see Analytics from a script for the rest):
public class StepSecondsPayload : ExperienceStepCompleteDTO
{
public StepSecondsPayload(string experienceKey, string step, int seconds)
{
key = experienceKey;
stepId = step;
score = seconds;
outcome = EExperienceOutcome.Pass;
scoringType = EExperienceScoringType.Numeric;
Verb = EAnalyticVerb.StepComplete;
}
}
In the Back Office, the card of each step in the run's detail shows only the score, as its Result: that is where the seconds of each step are read.
A score with no maxScore appears in the run summary as the score over zero, for example 283 / 0. Read it as 283 seconds. The Back Office shows a score without a maximum as the score over zero, not as the score alone.