Mixpanel integration
Overview
Integrating Userpilot with Mixpanel allows you to track and analyze user engagement data more effectively. Once integrated, Userpilot data will appear as events in Mixpanel, enabling deeper insights into user behavior.
Prerequisites
Before you begin, ensure that you have the following:
- Mixpanel Account: A valid Mixpanel account is required.
- Userpilot Account: Ensure your Userpilot account is active.
- JS Scripts Installed: Both Mixpanel and Userpilot JavaScript (JS) scripts must be fully installed across all relevant pages on your website.
Integration Steps
1. Install Mixpanel and Userpilot JS Scripts
Ensure that both Mixpanel and Userpilot JavaScript snippets are correctly installed on your website. These scripts are essential for capturing user events and sending them to their respective platforms.
- Mixpanel JS Script: This script should be added to the header of your web pages.
- Userpilot JS Script: Similarly, ensure the Userpilot script is installed and functioning.
If you need assistance with this, refer to the documentation provided by Mixpanel and Userpilot for script installation.
2. Enable Mixpanel Integration in Userpilot
Once both scripts are installed and active:
- Log in to your Userpilot account.
- Navigate to the Integrations tab.
- Find the Mixpanel Integration option and click on it to enable it.
3. Verify Data in Mixpanel
After enabling the integration:
- Log in to your Mixpanel account.
- Go to the Events tab.
You should start seeing Userpilot engagement data appearing as custom events.
These events will include details of how users interact with your Userpilot content, allowing you to analyze their behavior directly within Mixpanel.
You will also be able to filter Userpilot Events in Mixpanel
Troubleshooting
If you are not able to see Userpilot events in Userpilot, check the following points:
- Check that Userpilot is successfully installed by calling userpilotSettings.userid from the console, this should return the user ID. If it returns "undefined" then you need to review the Userpilot script to ensure it's set up correctly.
- The Mixpanel window object does not return
undefined
or throw any errors/ - When calling mixpanel.init from the console, it is not returning
undefined
, if it is then ensure
For any questions or issues please reach out to support@userpilot.co