Embeddable

Send widget events to Segment

Connect Segment with a write key so events from your widget reach Segment and every destination you've set up there.

2 min readPublished by Daniel Sternlicht on Nov 22, 2026, 10:57 AM UTCUpdated Nov 22, 2026

Connect Segment when you use it to route your site's events to other tools. Embeddable sends your widget's events to a Segment source, and Segment passes them on to the destinations you've set up there.

Before you start

You need the write key of a Segment source.

  1. In Segment, open Connections, then Sources. Pick a source, or add an HTTP API source for your widget.
  2. Open the source's Settings, then API Keys, and copy the Write Key.

Connect it

Connect Segment from Connect apps. A connection made from the card in the AI chat doesn't send events to Segment at the moment.

If you already connected Segment from the chat, disconnect it first, using the trash icon on the card or Disconnect in Connect apps. Then follow these steps.

  1. Open your widget in the editor.
  2. Click More, then Connect apps.
  3. Find Segment and click Connect.
  4. Click Continue. If you see Which account? instead, choose Add another account.
  5. Give the connection a name in Name (only you see this) and paste your key into Write Key.
  6. Click Save and continue, make sure the new account is selected under Which account?, and click Connect.

What happens next

Widgets built with the AI usually report what people do in them, like sending a form or clicking a button. Once Segment is connected, those events are sent to your source too, with names like form_submit, button_click and signup. To change what's reported, tell the AI chat, for example "Send an event to Segment when someone books a time."

Events are only sent from your live widget, not from the editor preview. To check, use your widget on your live site, then open your source's Debugger in Segment to see events arrive.

Remove it

  • Click More, then Connect apps, open Segment and click Disconnect.
  • The connection stays saved in your workspace so you can use it again.

If events don't show up, check the write key for typos by connecting again. If it still doesn't work, email us through the contact page with the widget name.

Did this answer your question?

Your feedback helps us improve.