Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Dengan integrasi Segment, yang tersedia di Looker Action Hub, Anda dapat mengirim Tampilan dan Jelajah ke berbagai integrasi yang dikelola oleh Segment, termasuk aplikasi pihak ketiga seperti Marketo, Hubspot, dan lainnya.
Untuk mengirim atau menjadwalkan Tampilan dan Jelajah dengan atribut Segmen, tambahkan tag LookML terlebih dahulu ke kolom yang sesuai dalam model Looker Anda. Untuk mengetahui daftar lengkap tag yang diizinkan untuk setiap tindakan, lihat halaman dokumentasi tag (untuk kolom).
Sebagian besar tindakan memerlukan setidaknya tag email dan user_id. Tambahkan tag ini ke kolom dalam model LookML Anda yang masing-masing sesuai dengan alamat email pengguna dan ID pengguna Segmen. Contoh:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 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/)."]]