Learn how to integrate Webflow Optimize with Segment to send view events to Segment.
You can integrate with Segment to send view event info from Webflow Optimize to Segment for your reports. Webflow Optimize will send a track event to Segment using a preconfigured event name and the standardized Segment schema for A/B testing.
Before you get started
The Segment snippet needs to be installed on your webpages for the integration to function. The default event name in Segment for testing experiences is "Experiment Viewed". If you’re using a different name, you’ll need to enter it in the Webflow Optimize configuration.
Set up the Segment integration
Go to your Webflow site, then:
- Go to the Insights tab
- Click Integrations
- Click Set up under Segment
- Leave the Event Name as “Experiment Viewed” or enter the custom value you’ve set in Segment
- Click Save
About the data sent to Segment
Note
Conversion events are not sent to Segment.
Webflow Optimize sends a track event to Segment. One view event will be sent to Segment for each variation viewed. For example, three Segment events are sent for a single page view that had three variations shown.
Example of the data sent:
analytics.track('Experiment Viewed', {
experienceId: '5656',
experienceName: 'Hero headline',
variationId: '7878',
variationName: 'Get Started In Minutes',
nonInteraction: 1,
});
Additional info about the data:
- “ID” values are internal identifiers for Webflow Optimize
-
experienceName is the optimization name
-
nonInteraction is sent so that the data doesn’t impact bounce rates for users that integrate Segment with GA. You can review Segment’s Non-interactive events & send non-interactive events to GA help pages to learn more.