How to Do A/B Testing in Mixpanel | Scribe

    How to Do A/B Testing in Mixpanel

    information ordinal icon
    To get started, you'll need to track an event using the Mixpanel API. Consider creating an event called "view_experiment" with two properties, one called "name" which is the name of the experiment and then "variant" which is the name of the condition that each user will be in. You'll need to set up your application to randomly allocate a user to different variants.
    1
    Next, just open Mixpanel and follow these steps.
    2
    Click "Reports"
    3
    Click "Funnels"
    4
    Now you need to add the steps. The first step should always be the "view_experiment" event you created.
    5
    Click here.
    6
    Type "view_experiment"
    7
    Click "view_experiment"
    8
    Then add an inline filter.
    9
    Click "Inline filter"
    10
    Type the "name" field.
    11
    In this case, we called the "name" field "experiment"
    12
    Check the experiment that you're running.
    13
    Click "Add"
    14
    The next step should be your "win" condition, typically something like a signup or taking some action on your site that you care about.
    15
    Click here.
    16
    For example, here we are optimizing for users upgrading to pro.
    17
    Click here.
    18
    Finally, you need to breakdown on your variant field.
    19
    Click here.