"The best investment our company has made on analytics" - Benzapp, Bob Martin

How to merge 2 users in mixpanel using postman?

Jan 3, 2023 | TIPS & TOOLS

Postman is a great tool to use for merging duplicate profiles in Mixpanel

Sometimes when working with Mixpanel you run into an issue where you have duplicate profiles. Luckily Mixpanel has an API endpoint for this. One of the easiest solutions is to connect your postman account with their API. Here is the code that we use to do this.

All you need to do is replace the project ID, and the two id’s that want to merge and send a post call.

Screen Shot 2023 01 03 at 3.12.28 PM

The Post Call: https://api.mixpanel.com/import?project_id=project_id&strict=1

[ { "event": "$merge", "properties": { "$distinct_ids": [ "user_id_1", "user_id_2" ] } } ]

You can find more information here in Mixpanel developer documentation

Tags:

We hope you enjoyed reading this blog post

If you'd like our team at Digital Dames to help you massively improve website traffic and conversions, just book a call.

Post Contributors

Jaclyn Hawtin

Jaclyn Hawtin

Director of Technology

Over a decade of experience in product management, devops, startups, and agile methodologies. Track record of simplifying complex technical processes for cross-functional teams. Proficient in user centered design, UX, IX, UI, IA, user research and data analytics for responsive web, mobile and tablet applications. Incredibly adaptable, fluent with both people and machines.

Mani O'Brien

Mani O'Brien

Director of Marketing

Mani is a senior marketing manager with roots in storytelling. She nerds out on everything data, technology, human behavior and design. Chat with her about UX/UI, marketing funnels, conversion and goal tracking, marketing experimentation and astrology (she’s a Virgo Sun, Aries Rising).

Most Read
How to Optimize Google Shopping Ads

How to Optimize Google Shopping Ads

Do you ever search for things to buy online and notice ads showing up with pictures and prices? These are called Google Shopping ads, and they can be an excellent way for businesses to show you their products. But did you know that there are ways to make these ads...

How Much Do Google Ads Cost

How Much Do Google Ads Cost

From Cost to ConversionAre you interested in using Google Ads to promote your business but hesitant due to concerns about cost? You're not alone. Many companies are curious about how much it will cost them to run a successful Google Ads campaign. The truth is that the...

What is a Dimension in Google Analytics

What is a Dimension in Google Analytics

What is a Dimension in Google Analytics?Understanding the data collected by this powerful tool is essential for anyone looking to optimize their online presence and drive their business forward. But with so much information available, it can be overwhelming to know...

Free Analytics 101 Course

Sign up for free access to start your data journey

First Name
This field is for validation purposes and should be left unchanged.
Conversion Path Ep. 12 -- Shopify Conversion Tips With Guest Brad Redding from Elevar Ep. 12 -- Shopify Conversion Tips With Guest Brad Redding from Elevar More
More