> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flagsync.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Define Metrics

> Aggregate events into insights for FlagSync.

## Defining Metrics

Metrics track how features affect users—like clicks or sign-ups—by correlating [events](/quickstarts/events) and [flag impressions](/quickstarts/flag) from users. Let’s create two:

* `Sign-Up CTA Click` (sign-up clicks within the layout).
* `Sign-Up Complete` (completed sign-ups).

We’ll use these in an experiment with the `new-feature` flag (`Enabled`/`Disabled`) to test if the new layout boosts conversions.

<Steps>
  <Step title="Add a Metrics">
    In the Dashboard, click "+" next to **Metrics** or go to [Create a Metric](https://www.flagsync.com/dashboard/metrics/new/).
  </Step>

  <Step title="Name Your Metric">
    * **Name**: Enter `Sign-Up CTA Click`.
    * **Description** (optional): Add “Tracks clicks on the sign-up CTA button.”

    <Frame>
      <img alt="Metric details form" src="https://mintcdn.com/flagsync/dTCxWdoh9aH45uVC/images/metrics-details.webp?fit=max&auto=format&n=dTCxWdoh9aH45uVC&q=85&s=c2778fedf32fc96cea03a67d76112f38" width="850" height="266" data-path="images/metrics-details.webp" />
    </Frame>
  </Step>

  <Step title="Pick Events">
    * Select `signup-cta-click` from the dropdown.

    <Frame>
      <img alt="Metric event form" src="https://mintcdn.com/flagsync/dTCxWdoh9aH45uVC/images/metrics-event.webp?fit=max&auto=format&n=dTCxWdoh9aH45uVC&q=85&s=5069269c4a6f79f9bbcfe17edcda26c7" width="853" height="191" data-path="images/metrics-event.webp" />
    </Frame>

    * This auto-populates from SDK calls like:

    ```typescript theme={null}
    client.track('signup-cta-click');
    ```

    <Tip>Events appear automatically—no need to predefine them. Track what matters in code, and it’ll show up here.</Tip>
  </Step>

  <Step title="Choose Measurement Type">
    Select "Conversion Rate".

    <Frame>
      <img alt="Metric type form" src="https://mintcdn.com/flagsync/dTCxWdoh9aH45uVC/images/metrics-type.webp?fit=max&auto=format&n=dTCxWdoh9aH45uVC&q=85&s=c6e6225a66d43f6fc47e97c76a439c35" width="856" height="63" data-path="images/metrics-type.webp" />
    </Frame>

    <Info>Measures click events vs. impressions (e.g., 100 clicks / 1,000 views = 10%)</Info>
  </Step>

  <Step title="Choose Impact">
    Select "Increase".

    <Frame>
      <img alt="Metric type form" src="https://mintcdn.com/flagsync/dTCxWdoh9aH45uVC/images/metrics-impact.webp?fit=max&auto=format&n=dTCxWdoh9aH45uVC&q=85&s=9e5ebcf0453c9eac7f4ef65ddba9c5d8" width="851" height="193" data-path="images/metrics-impact.webp" />
    </Frame>

    <Info>We want more clicks compared to the baseline (Register).</Info>
  </Step>

  <Step title="Save It">
    Click "Create Metric" to save.
  </Step>

  <Step title="Repeat">
    Repeat the process for the `Sign-Up Complete` metric:

    * **Name**: Enter `Sign-Up Complete`.
    * **Description** (optional): Add “Tracks sign-up completion.”
    * **Select Event**: `signup-complete`
    * **Type**: Conversion Rate
    * **Impact**: Increase
  </Step>
</Steps>

## Next Steps

Metrics are set—now use them:

* Test variants in [Quickstart: Create an Experiment](/quickstarts/experiment).
* Check results in [Monitoring and Analysis](/experiments/monitoring).
* Learn more in [Metrics](/metrics/overview).
