Skip to main content

Insights Quickstart

Get Insights events flowing from your app in minutes. Choose your development environment below.

1) Install

  • Add the AbxrLib Unity package (via UPM or local package).
  • Ensure your Android/Gradle toolchain is compatible.

2) Required Configuration

  1. Open Analytics for XR > Configuration in the Unity Editor.
  2. Configure your credentials:
    • For Development/Testing: Paste in the App ID, Org ID, and Auth Secret. All 3 are required if you are testing from Unity itself.
    • For Production Builds: Only include the App ID, and leave Org ID and Auth Secret empty.
Security

The Org ID and Auth Secret should only be compiled into builds when creating custom applications for specific individual clients. For general distribution, use ArborXR-managed devices or implement runtime credential provisioning.

3) Initialize

In Unity the Abxr object will automatically be available. Skip to the next section.

4) Essential Event Tracking (Required)

Assessment events are required to activate grading dashboards and LMS integration. Send these events to track training completion, scores, and pass/fail status.

// When training starts
Abxr.EventAssessmentStart("safety_training");

// When training completes
Abxr.EventAssessmentComplete("safety_training", 92, EventStatus.Pass);
// or
Abxr.EventAssessmentComplete("safety_training", 25, EventStatus.Fail);

Assessment Complete:

  • Score (second parameter) takes a 0-100 value
  • The EventStatus enum has Pass, Fail, Complete, Incomplete, Browsed, NotAttempted options

The Insights dashboards and charts will be key to improving your content and helping your customer measure training efficacy. See here for more recommendations on powering the assessments dashboard.

Assessment Tracking Examples

Unity (C#) - Click to collapse
// Add at the start your training (or training module)
Abxr.EventAssessmentStart("safety_training1");

// Add at the end your training (or training module)
Abxr.EventAssessmentComplete("safety_training1", 92, EventStatus.Pass);
// or
Abxr.EventAssessmentComplete("safety_training1", 28, EventStatus.Fail);
Unreal Engine (C++) - Click to expand
// Add at the start your training (or training module)
UAbxr::EventAssessmentStart(TEXT("safety_training1"));

// Add at the end your training (or training module)
UAbxr::EventAssessmentComplete(TEXT("safety_training1"), 92, EEventStatus::Pass);
// or
UAbxr::EventAssessmentComplete(TEXT("safety_training1"), 28, EEventStatus::Fail);
WebXR (JavaScript/TypeScript) - Click to expand
// Add at the start your training (or training module)
Abxr.EventAssessmentStart('safety_training1');

// Add at the end your training (or training module)
Abxr.EventAssessmentComplete('safety_training1', 92, Abxr.EventStatus.Pass);
// or
Abxr.EventAssessmentComplete('safety_training1', 28, Abxr.EventStatus.Fail);

When need to show specific example:

// To mark a specific objective start
Abxr.EventObjectiveStart("open_valve");

// When the objective is complete
Abxr.EventObjectiveComplete("open_valve", 100, EventStatus.Complete);
Learn More

See the Events documentation for Objectives, Interactions, and advanced tracking options.

FAQs & Recommendations

  • Security: The Org ID and Auth Secret should only be compiled into builds when creating custom applications for specific individual clients. For general distribution, use ArborXR-managed devices or implement runtime credential provisioning.
  • Environments: Configure different App IDs for development vs production

Next Steps

  • Events - Learn about Assessment, Objective, and Interaction events
  • SDK Libraries - Explore available SDKs for Unity, WebXR, and Unreal
  • LMS Integration - Connect to learning management systems
  • Best Practices - Tips for effective analytics implementation