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

# Building your first goal

> Create a goal and attach it to a campaign

Goals are created and managed in the Loops dashboard. This guide walks through creating a goal and attaching it to a campaign. For the concepts behind eligibility, targets, and measurement windows, see the [Goals overview](/goals/overview).

## Creating a goal

<Steps>
  <Step title="Navigate to Goals">
    Go to [Settings -> Goals](https://app.loops.so/settings?page=goals).
  </Step>

  <Step title="Create a new goal">
    Click **Create a goal** and give it a name. You can also add an optional description.
  </Step>

  <Step title="Set the eligibility filter (optional)">
    Use the filter builder to define which contacts are eligible to be enrolled. Leave it empty or toggle off the **Eligibility** section to make every contact who receives the campaign eligible.
  </Step>

  <Step title="Set the target filter">
    Use the filter builder in the **Conversion** section to define what success looks like, i.e. the contact state that should be considered as a conversion.
  </Step>

  <Step title="Set the default measurement window">
    Choose how many days contacts have to match the target filter after receiving a campaign.
  </Step>
</Steps>

## Attaching a goal to a campaign

<Steps>
  <Step title="Open a draft campaign">
    Goals can only be attached to campaigns that are still in **Draft**. Once a campaign has been sent or scheduled, its goal attachments are locked.
  </Step>

  <Step title="Attach a goal">
    In the campaign's **Send** page, select a goal from the goal picker.
  </Step>

  <Step title="(Optional) Override the measurement window">
    On the attachment, you can set a campaign-specific number of days.
  </Step>

  <Step title="Send the campaign">
    Contacts are evaluated for enrollment as the campaign delivers.
  </Step>
</Steps>

<Warning>
  **Goals cannot be attached retroactively.** Attach and detach only work on draft campaigns. Once a campaign is sending or sent, its goal attachments are fixed.
</Warning>

Goals are reusable: the same goal can be attached to multiple campaigns.

Once your campaign is sending, head to [Understanding metrics](/goals/metrics) to read the results.
