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.
- Integrate Netcore Cloud CE SDK,
$ncExternalIdentity
in Mixpanel using Mixpanel SDK methods. - Enable Mixpanel Integration in the Netcore CE dashboard.
- 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 matchesExternalIdentity
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.
- If
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.
- Log in to the Netcore CE dashboard and navigate to Settings > Integrations.
- Select Mixpanel under the Analytics Module section. The Integration modal appears.
- Select Add Integration.
- Enter the Connection Name.
- Copy the following:
- Regional End Point
- User Name
- Password
- Click Activate after entering these details in the Mixpanel account.
- 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.
- Log in to Mixpanel and navigate to Integrations section.
-
Select Custom Webhooks and click Add Connection in the dropdown of the created webhook.
-
Add the webhook and give a unique connection name in the Connector Name section.
-
Paste the Regional End Point in the URL section.
-
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.
- After creating a custom webhook, navigate to the Cohorts section from the Data Management tab.
- 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
- 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.
- Navigate to Cohorts in the Mixpanel dashboard.
- Choose a cohort and click Export to > Netcore CE.
- 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.
- Click Begin Sync to start the data transfer.
- Access the imported data in the List tab of the Netcore CE dashboard with the _mix suffix.
Updated about 1 month ago