Learn how to integrate Optimize with Mixpanel to send view events to Mixpanel.
You can integrate with Mixpanel to send view event info from Optimize to Mixpanel for your reports. An event will be sent to Mixpanel each time a variation is applied to a web page for a visitor.
Before you get started
Make sure you've created a project in Mixpanel and installed the Mixpanel snippet on your site.
Set up the Mixpanel integration
Optimize can detect the Mixpanel snippet installed on your site and leverages it to send view events to Mixpanel.
Open your Optimize site in Webflow, then:
- Click Account settings in the Navigation panel
- Go down to Integrations > Mixpanel
- Click Set up
- Leave the Event Name as “Optimization Viewed” or enter a custom value
- Click Save
About the data sent to Mixpanel
Note
Conversion events are not sent to Mixpanel.
Optimize sends an event to Mixpanel using the track() API. One view event will be sent to Mixpanel for each variation viewed. For example, three Mixpanel events are sent for a single page view that had three variations shown.
Example of the data sent:
mixpanel.track('Optimization Viewed', {
'Headline (5656)': 'Get Started In Minutes (7878)'
});Additional info about the data:
- The first value — Headline — is the optimization name
- The second value — Get Started In Minutes — is the variation name
- The numbers — (5656) and (7878) — are internal identifiers for Optimize