AltFreeStack
Migration guide

How to migrate from Mixpanel to PostHog

Here the bad news is unavoidable: analytics history almost never migrates between different platforms, because each one measures and aggregates data differently.

  1. 1

    Export a historical summary from Mixpanel as a file

    First, export your key reports (monthly traffic, top sources, conversions) for the last 12-24 months to CSV/PDF as a reference file — it can't be recovered afterward.

  2. 2

    Install PostHog's script in parallel

    Add PostHog's tracking script to your site without removing Mixpanel's yet, so both measure in parallel for 2-4 weeks and you can validate the numbers make sense.

  3. 3

    Recreate your goals and conversions

    Mixpanel's custom conversion events don't migrate — set them up again in PostHog using the same definition (e.g. form submission, purchase completed).

  4. 4

    Remove the old script

    Once you confirm PostHog is capturing traffic correctly, remove Mixpanel's script from your site and keep only the exported historical file as reference.

Before cancelling Mixpanel

Before cancelling Mixpanel, make sure you've also exported the audience and behavior reports you use for internal reporting — they disappear the moment you close the account.

Ready to deploy PostHog?

Full profile with license, tech stack and ready-to-copy docker-compose.

View PostHog's profile

These steps are a general guideline — the exact export menu can vary depending on Mixpanel's plan and version.