Frontend: Event tracking for viewing agent and flow catalog

About

The backend is starting to add event tracking for GraphQL mutations in #553157 (closed).

We want to track the frontend -specific event of "viewing" the catalog #553157 (comment 2623139654).

We only need to track the view events because create, update and delete events are be tracked on the backend.

Proposal

The events would be:

  • View agent catalog index
  • View flow catalog index
  • View an agent
  • View a flow

See:

this.trackEvent('view_ai_catalog_item_index', { label: <flow/agent>}););
this.trackEvent('view_ai_catalog_item', { label: <flow/agent> });
Edited by Vanessa Otto