--- title: "Mixpanel Connector" slug: "mixpanel-connector" updated: 2026-11-23T12:31:12Z published: 2026-11-23T12:31:12Z canonical: "support.gainsight.com/mixpanel-connector" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Mixpanel Connector Gainsight NXT This article guides you through how to integrate Mixpanel with Gainsight to access all Mixpanel event data in Gainsight. **Note**: This document provides general guidance on creating a Connection. Since the use case of each job is different and needs a unique configuration, for detailed information on creating any Job, refer to the *Configuration of Connectors* in the **Additional Resources** section at the end of this article. ## Overview Mixpanel is a customer data platform that captures customer usage data from your website and transmits the data to any system that is integrated with Mixpanel. Integrate Mixpanel with Gainsight to import customer usage data into the custom Gainsight objects. Mixpanel integration pulls usage data to Gainsight as and when events are captured by Mixpanel, hence configuration is not required for Schedule of the data jobs. For example, usage data includes the pageviews on a product in an ecommerce site or tracking of the customer activities in your website over a period of time. **Benefits of Gainsight integration with Mixpanel**: Analyze the usage data stored in Gainsight to design a better product, provide amazing customer service, grow your audience, etc. ## Configure Mixpanel Integration with Gainsight ### Recommendations Gainsight supports **Events**, **People**, and the associated properties from Mixpanel to track the page loads on your website. For more information, refer to the *Track Usage Data* in the **Additional Resources** section at the end of this article. . ### Prerequisites 1. Integrate Mixpanel with your application by installing web tracking code. For detailed information, refer to the *Integration of Mixpanel with your Application* section in this article. 2. Create or ensure that you have the Gainsight custom objects as required for storing **Event** and **People** data. For more information on how to create custom objects, refer to the *Gainsight Data Management* in the **Additional Resources** section at the end of this article. 3. While creating an object, you must ensure that the following fields are included: - Account Identifier - Event Identifier - Time Identifier - User Identifier - User First Name - User Last Name - User Email In addition, add any field which is required for mapping in the Mixpanel project. 4. Copy **API Secret Key** from the Mixpanel Project from which you want to import data into the Gainsight objects. For more information, refer to the *Viewing Project Token, API Key, and API Secret* in the [*Mixpanel: Personal Settings*](https://docs.mixpanel.com/docs/admin/two-factor-authentication#setup-via-personal-settings-page) article. #### Integration of Mixpanel with your Application Integrate Mixpanel with your application by installing the Mixpanel web tracking code into your website. **Note**: If the Mixpanel web tracking code is already installed on your website, you can skip this step. If Mixpanel is not installed on your website, follow the instructions in the [*Guide to Mixpanel Implementation*](https://help.mixpanel.com/hc/en-us/articles/360000865566) article to add the Mixpanel Javascript library directly to your site. The following image displays an example of the web tracking code. **Important**: You must use your project's tokens. ![Web tracking Code.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Web_tracking_Code.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=99UwGXDC9%2FpA6qTQtxmaWuHI4Cn3SH%2FpgYzAdegDAJU%3D) #### Track Usage Data Gainsight supports **Events**, **People**, and the associated properties from Mixpanel to track the page loads on your Mixpanel website. The following code snippet contains three properties that are recommended to use for the Mixpanel integrations. ![TUD code.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/TUD_code.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=PBkIfn8351OIHstZmFkllbIXZMxqTG4UPi4YeksdZII%3D) Following are the properties of the webpage tracked using Mixpanel: - You should add a **track API call** to track page loads with Mixpanel. This call is invoked when the page is loaded. - Details related to the page are passed as properties with the event. - Mixpanel links users to their actions on the UI and records traits about them. It includes a **unique User ID** and any optional traits like their email, name, etc. - Following are three properties recommended to use for the Mixpanel integrations along with the **pageLoad** event, as shown in the code snippet above: - **pageTitle**: This property tracks the name assigned to the page, ignoring URL structure. This is best suited for websites where almost every URL is unique or where the URLs do not follow a folder structure. - **pagePathLevelOne**: This property groups URLs into a folder hierarchy and aggregates metrics for all pages under the top level folder. This is best suited for websites with a large number of URLs organized hierarchically. - **pageURL**: This property tracks every page individually. This is best suited for websites with a small number of distinct URLs. **Note**: Events and the associated properties are used throughout this documentation. If you pull all the Mixpanel code outlined together, your code on all the webpages looks similar to the following example. ![Mixpanel Code.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Mixpanel_Code.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=fyam%2B0KbYzxg13PvX68C8SyRldBo1olLBgSSTI0hfBM%3D) #### Get API Secret Key of the Mixpanel Project You can obtain the API Secret Key of the Project in the Mixpanel website from which you want to import data into the Gainsight objects. To collect the API secret key: 1. Login to the Mixpanel website with your credentials. Navigate to **Profile > Account** as shown below: ![4 Mixpanel_Website.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/4_Mixpanel_Website.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=jC%2F4NB9S2pQZ8OfQWKkj9chMbp3nSpHMWGSftog6aw0%3D) 2. Navigate to the **Projects** tab. Copy the API Secret Key in the project from which you want to import data into the Gainsight objects. ![5_MP_Projects.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/5_MP_Projects.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=ZnkMEevoTJYb06NMJOool9y4VoLvlp14hXOkpS7yrZw%3D) ## Create a Mixpanel Connection This section explains how to create a connection with Mixpanel. Once a connection is created, data jobs are configured to ingest usage data into the Gainsight custom objects. **Note**: Create more than one Mixpanel Connection in the **Administration > Connectors 2.0 > Connections** page. To create a connection with Mixpanel: 1. Navigate to **Administration > Connectors** **2.0 > Connections**. 2. Click **Create Connection**. The Create Connection dialog appears. 3. Select *Mixpanel* from the **Connector** dropdown list. 4. Enter **Name** of the Connection. 5. Select the **Time Zone** from the dropdown list. You should select a timezone which is configured in your Mixpanel project. **Note**: If you select a timezone different than the one configured in your Mixpanel project, the data is likely to contain errors. 6. Enter the **API Secret Key** copied from your project on the Mixpanel website. 7. (*Optional*) Click **Test Connection** to test the connection. 8. Click **Save** to create the connection. [Embedded content](https://player.vimeo.com/video/470531841) ## Create a Data Job **Note**: Create one data job for each Mixpanel connection in the **Administration > Connectors 2.0 > Connections** page. To create a data job: 1. Navigate to the **Jobs** page. 2. Click **Create Job**. The **Create Job** dialog appears. 3. Enter the *Job* Name in the **Name of the Job** textbox. 4. Click **Next**. The **Job Preparation** page appears. 5. Select *Mixpanel* in the **Data Source**. Preparation tab is displayed which contains the following four sections: - **Job Details** - **Get MetaData** - **Map MetaData** - **Import Data** ![Create Data Job.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Create_Data_Job.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=KTPgT9IZ9hs%2BT0uRXJVKBqfcrc0eqGqyMIC3TM%2F%2FbTw%3D) ### Job Details In the **Job Details** section, perform the following actions: 1. **Connection**: By default, *Mixpanel Connection* is selected the connection type cannot be changed. 2. **Connector**: Displays the Connector Name. 3. **Timezone**: Displays the timezone. 4. **Engagement type**: Click the **+** icon and select **Event** and/or **People** from the dropdown. Gainsight supports two engagement types: **Event** and **People** to track the customer usage data. 5. Click **SAVE**. ![Job details.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Job_details.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=sho2YMMso03PiPqOdu2geYAszXYifdhiizBSLTL21oU%3D) ### Get Metadata In the **Get Metadata** section, perform the following actions: 1. Select the **date range** from which you want to fetch usage metadata. This will pull all events in the date range selected. By default, the date range is pre-populated for the last 5 days. **Note**: You can select a maximum of 7 days (1 week) in the date range. 2. In the **Send Email Notification**, enter the email address of recipients for the following cases: - **Email on Success:** If metadata import is successful, a success notification email is sent to the email addresses entered here. - **Email on Failure:** If metadata import is failed, a failure notification email is sent to the email addresses entered here. **Note**: By Default, 'Success' and 'Failure' fields are populated with the logged-in user email address. ![Meta Data.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Meta_Data.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=iWiyyNyfv2EyFZva9BGfzNAj1umHo3GSksUDF3I18hk%3D) 3. Click **FETCH METADATA**. You can see the following UI notification: ![UI Message.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/UI_Message.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=bJN6VdIhQ%2BkR0KEos2SgqkaDTnEYE0G0m6G6f5vWlvU%3D)You will receive a success notification of the metadata generation via email as shown below. If the metadata generation fails, you will see a failure notification accordingly. ![Metadata gen email.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Metadata_gen_email.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=aiHvLeQGn35MAb9mStHt1lc8FiUs4BZRWhP%2BFU8LqBk%3D) 4. Click **SHOW MAPPINGS** to navigate to the **Map Metadata** section. UI message **Mappings Fetched Successfully** appears. ### Map Metadata #### Events Mapping In the Events Mapping section, perform the following actions: 1. Select a **Gainsight custom object** to load events data from Mixpanel. For example, *MixpanelObject* is selected as shown below. 2. In the **Required** tab, map Mixpanel metadata to the fields in the target Gainsight object for the *Account, Event*, and *Time Identifiers* as shown below: ![Map Metadata.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Map_Metadata.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=Dm2vh72G8g6T0fYkjyek0YjBuy5jfofdKRS3txGK%2FlI%3D) 3. *(Optional)* Perform the following actions for Events data Transformation: 1. Click the **Transformation** icon for the **Account** and **Event Identifiers** to transform the event records. Transformation dialog appears. **Note**: Transformation cannot be performed on the **Time** Identifier records. 2. In the **Transformation** dialog: - **Default value**: Assign a default value for the null records. - **Change case**: Change the letter case of the records to **lower** or **upper**. - **Replace:** Enter the name of source record with the given value. - **With:** Enter value for the source record to be replaced with this value. 3. Click **Apply**. ![Transform Event.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Transform_Event.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=J6emDJrBSJa%2BZMWfXEtkrziqXCMEZ0ua8nGE52IHH8E%3D) 4. In the **Additional** tab, click **ADD** to map additional Mixpanel metadata to the fields in the target Gainsight object. ![Event Mapping -ADD.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Event_Mapping_-ADD.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=focXx527aItoOCrIhd8RzNjznMcusOFc2jdWBx3Bzo4%3D) **Note**: The **Required** mapping provides the list of standard fields available for mapping. Any other fields necessary for mapping are included in the **Additional** mapping. #### People Mapping Perform the following actions in the People Mapping section: 1. Select a **Gainsight custom object** to load People data from Mixpanel. For example, *Mixpanel People* is selected as shown below. 2. In the **Required** tab, map Mixpanel metadata to the fields in the Gainsight object, **Mixpanel People** for *User Identifier*, *First Name, Last Name*, and *Email* as shown below: ![18_People_Mapping.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/18_People_Mapping.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=feL0wu535D4GrsVABAavq4qVAFmXOget5s2WdWm48MI%3D) 3. Apply transformation on the Identifier, First Name, Last Name, and Email values as required. For more information, refer to the *transformation* step in the **Events Mapping** section. 4. In the **Additional** tab, click **ADD** to map additional Mixpanel metadata to the fields in the target Gainsight object. ![PPl Mapping-ADD.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/PPl_Mapping-ADD.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=CbDjoEvu58UrOezJe1cishFoFXL15BuhIa14sbmaP9E%3D) ### Import Data Perform the following actions in the Import Data section: 1. Import data from Mixpanel using one of the following options: - **Import Now**: Use this option to import data now from Mixpanel into the Gainsight objects. Select a date range of **maximum of two weeks** and import data available in that period. **Note**: If you want to import data for more than two weeks, you can use the import option multiple times with the corresponding date ranges. ![Import Data.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Import_Data.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=W2vk3U%2BiKZjsT2Cgs6Yus2UaK%2FQv7oTi8Ahvr93rIvI%3D) - **Scheduled Import**: Use this option to import data from Mixpanel on a daily schedule. The scheduler runs everyday at the **Time** specified by the user, and fetches the data of N days prior to the scheduled run date. **Note**: For example, to import Yesterday's data, N days should be set to 1. Similarly to import data of the last two days, N days should be set to 2. The timezone of the Mixpanel Connection is shown here. ![Import Data _2.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Import_Data__2.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=c4olBVAUOgFObHgFC70ppGNa4UGl5jFPDfEi3rdkYqw%3D) 2. In the **Send Email Notifications**, enter the email address of recipients for the following cases: - **Email on Success**: If data import is successful, a success notification email is sent to the email addresses entered here. - **Email on Failure**: If data import is failed, a failure notification email is sent to the email addresses entered here. **Note**: By Default, 'Success' and 'Failure' fields are populated with the logged-in user email address. 3. Click **START DATA IMPORT**. The following UI notification is displayed. ![UI message - Import data.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/UI_message_-_Import_data.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=VbdkJPwK9lEa1%2FEDWZJSHh4sEiiPn2urdEkjQEUUBZo%3D) You will receive success notifications for data import of Events and/or People via emails separately. If the data import is failed for Events and/or People, you will receive a failure notification accordingly. Success notification for data import of Events is shown below: ![notification email.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/notification_email.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=Il1Uv7qan%2BAp8olnScLPAvVVJ82ihPp3YjhtnQu9U9E%3D) Success notification for data import of People is shown below: ![Notification_Events_Data_Import.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Notification_Events_Data_Import.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=KAkBafqw64LsdjGcS9JUJ3QgUc4gUqo%2BeMZyp%2BoengY%3D) ## Jobs List In the **Jobs** **List** page, you can see the data job for each Mixpanel Connection. E**dit** or **delete** the existing data job in the Jobs List page. You can create one data job for each Mixpanel connection in the **Administration > Connectors 2.0 > Connections** page. For more information, refer to the *Job List Page* in the **Additional Resources** section at the end of this article. ![JObs list page.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/JObs_list_page.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A18%3A31Z&se=2026-11-24T17%3A18%3A31Z&sr=b&sp=r&sig=jwChxZlkCSu2nxOT8lDp5iw3BLcgCWvHDM603JO1iDM%3D) ## Activities View the **Execution** and **Update** Activities of all the data jobs in the Activity page. Download the logs of the jobs execution from this page to help troubleshoot the configuration issues. For more information, refer to the *Activity Page* in the **Additional Resources** section at the end of this article. ## Usage Data Aggregations Perform aggregations of the customer usage data using Rules. To perform the usage data aggregations and to schedule them, refer to the *Aggregate Usage Data with Rules Engine* in the **Additional Resources** section at the end of this article. *If you have questions or feedback about the feature explained in this article, please share them on* [*community.gainsight.com*](https://community.gainsight.com/gainsight) ## Additional Resources For more information about Connectors, refer to the following articles: - [*Configuration of Connectors*](/v1/docs/preparation-of-connector-jobs) - [*Data Platform and Connectors*](/v1/docs/data-platform-and-connectors-overview) - [*Connectors List Page*](/v1/docs/connections-list-page) - [*Jobs List Page*](/v1/docs/preparation-of-connector-jobs) - [*Job Chain Page*](/v1/docs/job-chain-page) - [*Configuration of Job or Job Chain Schedule*](/v1/docs/configuration-of-job-or-job-chain-schedule) - [*Activity Page*](/v1/docs/activity-page) - [Track Usage Data](/v1/docs/mixpanel-connector#track-usage-data) - [*Gainsight Data Management*](/v1/docs/gainsight-data-management) - [*Aggregate Usage Data with Rules Engine*](/v1/docs/aggregate-usage-data-with-rules-engine)