Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Com a integração do Segment, disponível no Hub de ações do Looker, é possível enviar Looks e Análises detalhadas para várias integrações gerenciadas pelo Segment, incluindo aplicativos de terceiros como Marketo, Hubspot e outros.
Como adicionar tags de segmento ao seu modelo do LookML
Para enviar ou programar visualizações e análises detalhadas com atributos de segmento, primeiro adicione tags do LookML aos campos apropriados no modelo do Looker. Para conferir uma lista completa de tags permitidas para cada ação, consulte a página de documentação tags (para campos).
A maioria das ações exige pelo menos as tags email e user_id. Adicione essas tags aos campos no seu modelo do LookML que correspondem aos endereços de e-mail e IDs de usuários do Segment, respectivamente. Exemplo:
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-25 UTC."],[],[],null,["# Sharing data to Segment\n\nWith the [Segment integration](/looker/docs/admin-panel-platform-actions#list_of_integrated_services), available in the [Looker Action Hub](/looker/docs/action-hub#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/).\n\nTo start using Segment in Looker:\n\n1. A Looker admin [sets up a Segment integration](#setting_up_a_segment_integration). This step is only required once.\n2. A Looker developer [sets up Segment tags](#adding_segment_tags_to_your_lookml_model). This step is only required once.\n3. A Looker user [selects Segment as the destination of a delivery](#sending_a_look_or_an_explore_to_segment).\n\nSetting up a Segment integration\n--------------------------------\n\n| **Note:** You must be a Looker admin to set up a Segment integration.\n\nTo set up a Segment integration:\n\n1. In your Segment workspace, search the **Catalog** for the Looker source and select it.\n\n2. In **Source setup** , give your source a name (typically `Looker`), and select **Add Source**.\n\n3. Segment will display a write key for your source. Copy this write key.\n\n4. In your Looker instance, navigate to the **Actions** page in the **Platform** section of the **Admin** panel.\n\n5. Select **Enable** next to the Segment action you want to enable.\n\n6. Paste the Segment write key from step 3 into the **Segment Write Key** field.\n\n7. Select **Save**.\n\nTo finish setting up your Segment integration, [add Segment tags to your LookML model](#adding_segment_tags_to_your_lookml_model).\n\nAdding Segment tags to your LookML model\n----------------------------------------\n\nTo send or schedule Looks and Explores with Segment attributes, first add [LookML tags](/looker/docs/reference/param-field-tags) to the appropriate fields in your Looker model. For a complete list of allowed tags for each action, see the [tags (for fields)](/looker/docs/reference/param-field-tags) documentation page.\n\nMost 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: \n\n dimension: email {\n sql: ${TABLE}.email ;;\n tags: [\"email\"]\n }\n\n dimension: user_id {\n sql: ${TABLE}.user_id ;;\n tags: [\"user_id\"]\n }\n\n| **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/).\n\nSending a Look or an Explore to Segment\n---------------------------------------\n\nOnce you have [set up the Segment integration](#setting_up_a_segment_integration) and defined [LookML tags](#adding_segment_tags_to_your_lookml_model), you can send Looks and Explores to Segment.\n\n1. [Create a Look](/looker/docs/saving-and-editing-looks) or [build an Explore](/looker/docs/creating-and-editing-explores) using one or more fields with a [Segment LookML tag](#adding_segment_tags_to_your_lookml_model).\n\n2. Select the gear icon. For Looks, select either **Send** or **Schedule** . For Explores, select either **Send** or **Save and schedule**.\n\n3. Select your Segment destination.\n\n4. Configure [other delivery settings](/looker/docs/delivering-looks-explores#creating_a_delivery) as desired and select **Send** or **Save**.\n\n | **Note:** Your payload will be delivered in JSON format.\n5. Confirm that Segment is receiving your Segment attributes using the [Segment debugger](https://segment.com/docs/connections/sources/debugger/)."]]