Integrate Netcore in Mixpanel

Learn to integrate Mixpanel in Netcore's CE dashboard.

The Netcore and Mixpanel integration provides valuable insights into customer behavior, enhancing marketing and product strategies. It enables effortless import of cohort data from Mixpanel into Netcore's CE dashboard.

In this integration guide, you learn to export Mixpanel cohorts and import them into Netcore's CE dashboard.

Prerequisites

Ensure the following prerequisites are met before importing data from Mixpanel.

  1. Integrate Netcore Cloud CE SDK, $ncExternalIdentity in Mixpanel using Mixpanel SDK methods.
  2. Enable Mixpanel Integration in the Netcore CE dashboard.
  3. Enable NetcoreCloud Integration in the Mixpanel dashboard.

Set Common User Identifier between Netcore and Mixpanel

To establish a common user identifier between Netcore and Mixpanel, do the following.

  • Netcore introduces $ncExternalIdentity attribute, consistently accessible through a SDK method.

Refer to User Identity Management for details on identifying users during Mixpanel and Netcore CE synchronization.

Using SDK Method

The SDK method provides access to $ncExternalIdentity. Here's how you can seamlessly integrate it with Mixpanel.

String ncExternalIdentity = Smartech.getInstance(new WeakReference<>(context)).getUserExternalIdentity();

// Sets user "ncExternalIdentity" attribute to "306078554e98924f3af2770466bba49a7fd083be8246f6031da0ea0d5940b75a"
mixpanel.getPeople().set("ncExternalIdentity", "306078554e98924f3af2770466bba49a7fd083be8246f6031da0ea0d5940b75a");
val ncExternalIdentity = Smartech.getInstance( WeakReference<>(context)).getExternalIdentity();
// Sets user "ncExternalIdentity" attribute to "306078554e98924f3af2770466bba49a7fd083be8246f6031da0ea0d5940b75a"
mixpanel.people.set("ncExternalIdentity", ncExternalIdentity)
NSString *ncExternalIdentity = [[Smartech sharedInstance] getExternalIdentity];
// Sets user "ncExternalIdentity" attribute to "306078554e98924f3af2770466bba49a7fd083be8246f6031da0ea0d5940b75a"
[mixpanel.people set:@{@"ncExternalIdentity": ncExternalIdentity}];
let ncExternalIdentity = Smartech.sharedInstance().getExternalIdentity()
// Sets user "ncExternalIdentity" attribute to "306078554e98924f3af2770466bba49a7fd083be8246f6031da0ea0d5940b75a"
Mixpanel.mainInstance().people.set(properties: [ "ncExternalIdentity": ncExternalIdentity])

User Identity Management

Mixpanel exclusively shares identified users with partners like Netcore. When segments are received from Mixpanel, user identity matching occurs as follows:

  • During synchronization:
    • If $ncExternalIdentity is present, it matches ExternalIdentity values in the Netcore CE dashboard. Matching profiles are integrated, identifying the user in Netcore.
    • If $ncExternalIdentity is absent or does not match, a new user profile is created in Netcore CE dashboard.

Additionally, Mixpanel shares users' email and phone numbers with Netcore CE during exports, updating profiles in Netcore CE.

Enable Mixpanel Integration

Follow these steps to integrate Mixpanel in your Netcore CE dashboard.

  1. Log in to the Netcore CE dashboard and navigate to Settings > Integrations.
  2. Select Mixpanel under the Analytics Module section. The Integration modal appears.
Access Mixpanel in Netcore's CE Dashboard

Access Mixpanel in Netcore's CE Dashboard

  1. Select Add Integration.
  2. Enter the Connection Name.
  3. Copy the following:
    1. Regional End Point
    2. User Name
    3. Password
  4. Click Activate after entering these details in the Mixpanel account.
  5. The integration is now active and appears under the Connected tab.

Enable Netcore Cloud Integration in Mixpanel

Follow these steps to enable Netcore Cloud Integration in Mixpanel and set up a Connector.

  1. Log in to Mixpanel and navigate to Integrations section.
Integrations in Mixpanel Dashboard

Integrations in Mixpanel Dashboard

  1. Select Custom Webhooks and click Add Connection in the dropdown of the created webhook.

  2. Add the webhook and give a unique connection name in the Connector Name section.

  3. Paste the Regional End Point in the URL section.

  4. Paste the Username and Password as provided in the Netcore CE dashboard and click Continue.

📘

Note

In the Edit Column section make sure to choose ncpartnerparameter as a property that you want to export. Also, select the other properties which have been already created in the Netcore CE dashboard.

  1. After creating a custom webhook, navigate to the Cohorts section from the Data Management tab.

  1. Click on Export To and select the Connector Name of the webhook previously created. The options available here are: One-time Export and Recurring Sync
  2. Click on Begin Sync.

The export of all the users in the cohort will begin immediately.

📘

Points to Remember

  • The Regional Endpoint is always formatted as \<CEE_REGIONAL_ENDPOINT>/mixpanel/\<APP_ID>.
  • During cohort sync setup in the Mixpanel dashboard, use basic authentication.
  • The generated Username and Password are used for basic authentication with Netcore.

Import Cohorts

Follow these steps to import cohorts from Mixpanel. This gives you insights into your targeted campaigns and optimized user experiences.

  1. Navigate to Cohorts in the Mixpanel dashboard.
  2. Choose a cohort and click Export to > Netcore CE.
  3. Select one of the following sync types:
  • One-time Export: This option imports the cohort data once. Mixpanel sends a single list of users belonging to the cohort at that specific moment to Netcore CE.
  • Recurring Sync: This option automatically syncs the cohort with the Netcore CE dashboard every 30 minutes. The imported segment is updated regularly to reflect the latest list of users within the cohort.
  1. Click Begin Sync to start the data transfer.
  2. Access the imported data in the List tab of the Netcore CE dashboard with the _mix suffix.