JavaScript client

Events

Record gallery and image interaction events.

await client.track({
  event: 'image_view',
  galleryId: 'gallery_uuid',
  assetId: 'asset_uuid',
});

Supported events are gallery_view, image_view, interaction, and download. The client supplies occurredAt when it is omitted.

Client events are telemetry, not proof of completed delivery. The media plane records delivery facts separately.