Send widget events to Mixpanel
Connect Mixpanel with your project token so views, clicks and sign-ups in your widget show up in your Mixpanel reports.
Connect Mixpanel when you already use it to understand what people do on your site and want your widget's activity in the same reports. Embeddable sends each event to your Mixpanel project.
Before you start
You need your Mixpanel project token. In Mixpanel, open Project settings for your project and copy the Project Token.
Mixpanel projects stored in the EU or India data centers can't be connected at the moment.
Connect it
Connect Mixpanel from Connect apps. A connection made from the card in the AI chat doesn't send events to Mixpanel at the moment.
If you already connected Mixpanel from the chat, disconnect it first, using the trash icon on the card or Disconnect in Connect apps. Then follow these steps.
- Open your widget in the editor.
- Click More, then Connect apps.
- Find Mixpanel and click Connect.
- Click Continue. If you see Which account? instead, choose Add another account.
- Give the connection a name in Name (only you see this) and paste your token into Project Token.
- 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 Mixpanel is connected, those events are sent to your project 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 Mixpanel when someone opens the pricing tab."
Events are only sent from your live widget, not from the editor preview. To check, use your widget on your live site, then open Events in Mixpanel to see them arrive.
Remove it
- Click More, then Connect apps, open Mixpanel and click Disconnect.
- The connection stays saved in your workspace so you can use it again.
If events don't show up, check the token 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.
