Skip to content

Studio Script Reference: Analytics actions

context.actions.trackUserEvent()

Records a custom user action in Ease Live Analytics. The actionId must reference an action defined in your project's analytics configuration.

Example:

js
context.actions.trackUserEvent({
  actionId: 'dc61dc36-b0f4-4dc9-a9a8-7f4ec0088ac7',
  // Optional: associate event with a specific data event context
  contextId: 'e6c5b13a-2fd8-40e3-9d65-4d1062da075f',
  // Optional: associate event with a specific program
  programId: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'
});