xR2 icon

xR2

Interact with xR2 APIs

Actions3

Event → Track

AI-generated

Summary

Send an event tracking record to xR2 with required Trace ID and Event Name, plus optional user, session, value, currency, and metadata details.

Inputs

  • Trace ID (required) — Trace ID from Get Prompt response
  • Event Name (required) — Event name as defined in dashboard (e.g., "signup_success", "purchase_completed")
  • User ID — Optional user identifier for tracking
  • Session ID — Optional session identifier for analytics
  • Value — Numeric value for revenue tracking, order amounts, etc. Defaults to 0 meaning not set.
  • Currency — Currency code (e.g., "USD", "EUR")
  • Metadata — Custom event metadata as JSON object (e.g., {"plan": "premium", "order_id": "123"})

Output shape

a single JSON object representing the event creation response

Returns the API response from the /api/v1/events endpoint, paired with the input item. Throws an error with detailed message on failure.

Links

Discussion