With the [Segment integration](https://docs.cloud.google.com/looker/docs/admin-panel-platform-actions.md.txt#list_of_integrated_services), available in the [Looker Action Hub](https://docs.cloud.google.com/looker/docs/action-hub.md.txt#the_looker_action_hub), you can send Looks and Explores to a variety of integrations managed by Segment, including third-party applications like Marketo, Hubspot, and [others](https://segment.com/docs/connections/sources/catalog/cloud-apps/looker/).

To start using Segment in Looker:

1. A Looker admin [sets up a Segment integration](https://docs.cloud.google.com/looker/docs/segment.md.txt#setting_up_a_segment_integration). This step is only required once.
2. A Looker developer [sets up Segment tags](https://docs.cloud.google.com/looker/docs/segment.md.txt#adding_segment_tags_to_your_lookml_model). This step is only required once.
3. A Looker user [selects Segment as the destination of a delivery](https://docs.cloud.google.com/looker/docs/segment.md.txt#sending_a_look_or_an_explore_to_segment).

## Setting up a Segment integration

> [!NOTE]
> **Note:** You must be a Looker admin to set up a Segment integration.

To set up a Segment integration:

1. In your Segment workspace, search the **Catalog** for the Looker source and select it.

2. In **Source setup** , give your source a name (typically `Looker`), and select **Add Source**.

3. Segment will display a write key for your source. Copy this write key.

4. In your Looker instance, navigate to the **Actions** page in the **Platform** section of the **Admin** panel.

5. Select **Enable** next to the Segment action you want to enable.

6. Paste the Segment write key from step 3 into the **Segment Write Key** field.

7. Select **Save**.

To finish setting up your Segment integration, [add Segment tags to your LookML model](https://docs.cloud.google.com/looker/docs/segment.md.txt#adding_segment_tags_to_your_lookml_model).

## Adding Segment tags to your LookML model

To send or schedule Looks and Explores with Segment attributes, first add [LookML tags](https://docs.cloud.google.com/looker/docs/reference/param-field-tags.md.txt) to the appropriate fields in your Looker model. For a complete list of allowed tags for each action, see the [tags (for fields)](https://docs.cloud.google.com/looker/docs/reference/param-field-tags.md.txt) documentation page.

Most actions require at least the `email` and `user_id` tags. Add these tags to the fields in your LookML model that correspond to Segment user email addresses and user IDs, respectively. For example:

    dimension: email {
      sql: ${TABLE}.email ;;
      tags: ["email"]
    }

    dimension: user_id {
      sql: ${TABLE}.user_id ;;
      tags: ["user_id"]
    }

> [!NOTE]
> **Note:** Without the correct user ID, your data will not be delivered to your supported integrations. You can see the required IDs for each supported Segment integration in the [Segment documentation](https://segment.com/docs/sources/cloud-apps/looker/).

## Sending a Look or an Explore to Segment

Once you have [set up the Segment integration](https://docs.cloud.google.com/looker/docs/segment.md.txt#setting_up_a_segment_integration) and defined [LookML tags](https://docs.cloud.google.com/looker/docs/segment.md.txt#adding_segment_tags_to_your_lookml_model), you can send Looks and Explores to Segment.

1. [Create a Look](https://docs.cloud.google.com/looker/docs/saving-and-editing-looks.md.txt) or [build an Explore](https://docs.cloud.google.com/looker/docs/creating-and-editing-explores.md.txt) using one or more fields with a [Segment LookML tag](https://docs.cloud.google.com/looker/docs/segment.md.txt#adding_segment_tags_to_your_lookml_model).

2. Select the gear icon. For Looks, select either **Send** or **Schedule** . For Explores, select either **Send** or **Save and schedule**.

3. Select your Segment destination.

4. Configure [other delivery settings](https://docs.cloud.google.com/looker/docs/delivering-looks-explores.md.txt#creating_a_delivery) as desired and select **Send** or **Save**.

   > [!NOTE]
   > **Note:** Your payload will be delivered in JSON format.

5. Confirm that Segment is receiving your Segment attributes using the [Segment debugger](https://segment.com/docs/connections/sources/debugger/).