The locations and interaction moments where events will be collected for use in Sourcegraph’s product analytics tools often must be defined within design artifacts.

To define a metric, designers should use a metric card from the project tools library. These cards help standardize the names and description of metrics across the product.

Follow the guidelines for naming events when defining an event.

  • If a large number of events are being collected, consider creating a Metrics page in Figma (example) to identify the locations and interactions where events will be collected.
  • Metrics review: consider requesting a review of your metrics definitions from the analytics team before the project goes to development.