Segment
Track user events from your embeddables and automatically forward them to 300+ supported destinations through Segment.
Setting Up Segment with Embeddable
You can track user events from your components by connecting Segment. Once connected, events will be automatically forwarded to Segment, where you can route them to over 300+ supported destinations (such as analytics, CRM, or marketing tools).
How to Connect Segment
1. Navigate to Integrations
From the main editor screen, click the Integrations icon (the plug) in the top-right corner.
2. Select Segment
Find Segment in the integrations list and click Connect.
3. Choose or Create a Credential
In the Select credential dropdown, you can:
- Select an existing credential if you've already connected Segment in this project.
- Or click Create New Credential if this is your first time.
4. Create a New Credential (First-Time Setup)
If creating a new credential, fill in the following fields:
- Credential Name: A recognizable name for this connection (e.g., "Segment Tracking").
- Description (Optional): Add a short note for clarity.
- Write Key (Required): Enter your Segment Write Key.
Click Create Credential to save.
5. Connect the Credential
Return to the dropdown, select your newly created credential, and click Connect.
Testing Your Integration
Once connected, events from your component will be sent to Segment. To verify:
- Log into Segment.
- Go to your Sources tab.
- Open the source associated with your Write Key.
- Check the Debugger to see incoming events in real time.
Best Practices
- Use the correct Write Key for the source you want to track (production vs. staging).
- Keep your Write Key secure — do not share it publicly.
- Use Segment's Debugger to confirm event flows before connecting downstream destinations.
- Consider naming credentials by environment (e.g., "Segment Prod" vs. "Segment Dev") for clarity.