<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Product Analytics Academy - Medium]]></title>
        <description><![CDATA[Product Analytics Academy provides helps you master product analytics regardless of your background. Our focus is on the concepts that product managers and analysts use the most, and we do most of our analysis through Mixpanel. https://productanalytics.academy - Medium]]></description>
        <link>https://medium.com/product-analytics-academy?source=rss----36a6d4e3171e---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Product Analytics Academy - Medium</title>
            <link>https://medium.com/product-analytics-academy?source=rss----36a6d4e3171e---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 15:59:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/product-analytics-academy" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Finding the time between key actions using Mixpanel]]></title>
            <link>https://medium.com/product-analytics-academy/finding-the-time-between-key-actions-using-mixpanel-50a6b14d12d3?source=rss----36a6d4e3171e---4</link>
            <guid isPermaLink="false">https://medium.com/p/50a6b14d12d3</guid>
            <category><![CDATA[product-analytics-tools]]></category>
            <category><![CDATA[mixpanel]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[product-analytics]]></category>
            <category><![CDATA[product-analysis]]></category>
            <dc:creator><![CDATA[Ali Baghshomali]]></dc:creator>
            <pubDate>Sun, 12 Mar 2023 23:44:22 GMT</pubDate>
            <atom:updated>2023-03-12T23:44:22.181Z</atom:updated>
            <content:encoded><![CDATA[<p>Finding the time between events in Mixpanel is a very common obstacle. Fortunately, it&#39;s also really easy to overcome. For this example, we’ll assume that the first event is watching a video, and the second event is liking a video. There are three different ways to do this, we&#39;ll cover each of them in detail below.</p><p><strong>Note</strong>: the data and screenshots used in this tutorial are from the “Media” sample dataset that comes free with Mixpanel. In each section, I’ve included links to the reports that the screenshots are from.</p><h3>Easiest way: make a simple Funnel report</h3><p><a href="https://mixpanel.com/s/VQGtB">Click here to view the Mixpanel report created in this section </a>(must be logged in to Mixpanel)</p><h4>Step 1: Create a funnel report</h4><p>Start by creating a blank funnel report. You can do that by clicking on “Reports” on the top left of your screen and selecting the “Funnel” option.</p><figure><img alt="Mixpanel funnel report highlighted" src="https://cdn-images-1.medium.com/max/658/0*EvHsMIypfHz79Bz3.png" /><figcaption>Mixpanel funnel report highlighted</figcaption></figure><h4>Step 2: Add your two events</h4><p>On the left-hand panel, add your two events in your desired order. In this case, the first step of the funnel is the “Watch Video” event and the second step is the “Like” event.</p><figure><img alt="Events added to Mixpanel funnel" src="https://cdn-images-1.medium.com/max/676/0*WDm5jbLAHPlE8PZT.png" /><figcaption>Events added to Mixpanel funnel</figcaption></figure><h4>Step 3: Look for the average time between events</h4><p>Make a funnel report where step 1 is your first event (“Watch Video”) and step 2 is your second event (“Like”). If you look below the funnel, you’ll see the average time it took between the two events. <a href="https://mixpanel.com/s/4zw6VH">Here’s a link</a> to the report shown below. It’s made using Mixpanel demo data and you need to be logged in to Mixpanel to view it. The dotted red box shows the time between the two events, which is 12.9 minutes in this case.</p><figure><img alt="Time between events in Mixpanel funnel snapshot" src="https://cdn-images-1.medium.com/max/1024/0*w4Q4-gSdiqqkozXU.png" /><figcaption>Time between events in Mixpanel funnel snapshot</figcaption></figure><p>You can do this with multi-step funnels too, with the time between every two consecutive steps shown below them.</p><h3>Best way: “Time To Convert” Report</h3><p><a href="https://mixpanel.com/s/4BS60M">Click here to view the Mixpanel report created in this section </a>(must be logged in to Mixpanel)</p><p>This method is very similar to the one shown in the previous section, but it has one additional step.</p><h4>Step 1: Create a funnel report</h4><p>Start by creating a blank funnel report. You can do that by clicking on “Reports” on the top left of your screen and selecting the “Funnel” option.</p><figure><img alt="Mixpanel funnel report highlighted" src="https://cdn-images-1.medium.com/max/658/0*pL4c0Vm0ZNoS2OSY.png" /><figcaption>Mixpanel funnel report highlighted</figcaption></figure><h4>Step 2: Add your two events</h4><p>On the left-hand panel, add your two events in your desired order. In this case, the first step of the funnel is the “Watch Video” event and the second step is the “Like” event.</p><figure><img alt="Events added to Mixpanel funnel" src="https://cdn-images-1.medium.com/max/676/0*WDm5jbLAHPlE8PZT.png" /><figcaption>Events added to Mixpanel funnel</figcaption></figure><h4>Step 3: Switch the report type to “Time To Convert”</h4><p>On the top right of your screen, click on the button that says “Funnel steps” and from the dropdown select the “Time to convert” option.</p><figure><img alt="Time to convert report highlighted" src="https://cdn-images-1.medium.com/max/1024/0*UvXiQQV2bzVdDY0D.png" /><figcaption>Time to convert report highlighted</figcaption></figure><p>What you’ll see after clicking the “Time To Convert” button is a report that breaks down your users according to the time between the two events.</p><figure><img alt="Breakdown of time between events in Mixpanel" src="https://cdn-images-1.medium.com/max/1024/0*QQ1pUgfu_1w69scV.png" /><figcaption>Breakdown of time between events in Mixpanel</figcaption></figure><h4>Step 4 (optional): Adjust your interval sizes</h4><p>If you want, you can adjust the size of the intervals shown in the report by clicking on the “Interval Size” button on the top right of your screen. Note that the upper limit of the time span is determined by the length of your funnel conversion window, which is set on the left-hand panel. In this case, the conversion window is 1 hour and the intervals are 5 minutes.</p><figure><img alt="Adjusting interval sizes for time to convert report" src="https://cdn-images-1.medium.com/max/1024/0*1iXPPtoTRhq6Ly7h.png" /><figcaption>Adjusting interval sizes for time to convert report</figcaption></figure><h3>For special cases: the “time_event” function</h3><p>Sometimes you want to track the time between two things but only one of them has an event. In this scenario, you can use the “time_event” function of Mixpanel’s library. An example is when you have a “Page Loaded” event that triggers whenever a page is loaded on your site, but you want to also measure how long it took to load the page.</p><p>This option requires coding, so it may be harder to implement if you don’t have access to engineering resources. But the concept is simple: You call “time_event” before tracking an event. When that event is triggered, the time between when “time_event” was called and when the event was triggered is passed as a property of the triggered event called “duration”.</p><p>This guide shows you everything using the Mixpanel JavaScript library, but you can do the same thing in other libraries like Swift (iOS) and Java (Android).</p><h4>Step 1: Implement code snippet</h4><p>Within your code, start your timer by calling the “time_event” method and passing it the name of the event that the timer is for. Then when your event itself is triggered (using the “track” method), the time it took between when the “time_event” method was called and when the “track” method was called is passed as a property of that event called “duration. This duration is measured in seconds.</p><pre>mixpanel.time_event(&#39;Page Loaded&#39;); // start the timer when page stars loading<br><br>mixpanel.track(&#39;Page Loaded&#39;, {&#39;Page Name&#39;: &#39;Settings&#39;, &#39;Domain&#39;: &#39;acme.org&#39;}); // call the event</pre><h4>Step 2: Create an Insights report</h4><p>When you have implemented the code in step 1 and data is flowing into Mixpanel, you can use an Insights report to measure the “duration” event.</p><figure><img alt="Mixpanel insights report highlighted" src="https://cdn-images-1.medium.com/max/656/0*1W4PvkAg43onrhWh.png" /><figcaption>Mixpanel insights report highlighted</figcaption></figure><h4>Step 3: Measure the average duration</h4><p>In the insights report add your event, then click “Count Total”, hover over “Aggregate Properties” and pick how you want to aggregate your duration. In this case, I chose to average it. Then you can select your “Duration” property from the dropdown.</p><p>Note: I didn’t have a “Page Loaded” event handy so for this screenshot I used a “Session End” event and a “Session Duration” property instead.</p><figure><img alt="Aggregate property functions" src="https://cdn-images-1.medium.com/max/862/0*deHDir-clCTyHL-N.png" /><figcaption>Aggregate property functions</figcaption></figure><figure><img alt="Get average session duration in mixpanel" src="https://cdn-images-1.medium.com/max/844/0*edQN0Hj0AX2xwLP4.png" /><figcaption>Get average session duration in Mixpanel</figcaption></figure><p>You can read more about this function in each of Mixpanel’s platform-specific libraries. For reference, <a href="https://developer.mixpanel.com/docs/javascript-full-api-reference#mixpaneltime_event">here is the documentation</a> for this method in the JavaScript library.</p><h3>Final Notes</h3><p>There you have it! Now you know how to calculate the time between events in Mixpanel, in three different ways.</p><p>We hope you enjoyed this. If you want to improve your product analytics skills (including Mixpanel) even further, check out our <a href="https://productanalytics.academy/">Ultimate Product Analytics Course</a>. It’ll teach you everything you need, and nothing that you don’t.</p><p>And if you need any kind of help with your company’s Mixpanel implementation, send us a message <a href="https://www.mentatanalytics.co/contact">here</a>. We’re the highest-rated Mixpanel consulting agency in the world, and we work with companies of all sizes and industries.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50a6b14d12d3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/product-analytics-academy/finding-the-time-between-key-actions-using-mixpanel-50a6b14d12d3">Finding the time between key actions using Mixpanel</a> was originally published in <a href="https://medium.com/product-analytics-academy">Product Analytics Academy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dealing with bad data accidentally sent to Mixpanel]]></title>
            <link>https://medium.com/product-analytics-academy/dealing-with-bad-data-accidentally-sent-to-mixpanel-a417ecc256ba?source=rss----36a6d4e3171e---4</link>
            <guid isPermaLink="false">https://medium.com/p/a417ecc256ba</guid>
            <category><![CDATA[product-analytics]]></category>
            <category><![CDATA[data-cleaning]]></category>
            <category><![CDATA[mixpanel]]></category>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[product-analysis]]></category>
            <dc:creator><![CDATA[Ali Baghshomali]]></dc:creator>
            <pubDate>Fri, 10 Mar 2023 06:08:24 GMT</pubDate>
            <atom:updated>2023-03-10T06:08:24.319Z</atom:updated>
            <content:encoded><![CDATA[<p>A very common question for Mixpanel users is about how to delete incorrect data that was sent to Mixpanel by accident. Unfortunately, there isn’t a straightforward way to do this with precision. You can delete all your data but deleting specific events is hard.</p><p>In this post, we’ll cover some options for the precision removal of Mixpanel data through some workarounds based on your specific situation. In all situations make sure you change your implementation code to address the issue or else you’ll keep capturing faulty data.</p><p><strong>Important</strong>: Mixpanel event data is immutable, meaning that it can’t actually be deleted from your project. So what we’re doing here is technically not deleting your events from the project, but removing bad events from the user interface and your reports.</p><p>We’re going to cover four most common scenarios of wanting to deal with bad data:</p><ol><li>Delete all your Mixpanel events</li><li>Remove all instances of a specific event</li><li>Remove Mixpanel events in a specific time range</li><li>Remove Mixpanel events triggered by specific users</li></ol><h3>Delete all your Mixpanel events</h3><p>There are currently only two ways to actually delete Mixpanel events in a way that the data is not available on Mixpanel’s servers. Either you have to <a href="https://help.mixpanel.com/hc/en-us/articles/360000881023#deleting-user-data">submit a deletion request</a> to Mixpanel or you have to programmatically delete all your data <a href="https://help.mixpanel.com/hc/en-us/articles/360000881023#submit-requests-via-api">through one of their APIs</a>.</p><p>These methods are for deleting all of your data, as opposed to removing a small portion of events that may be incorrect or faulty. If your goal is to remove just one event or some instances of an event, continue on to the appropriate section of this guide.</p><h3>Remove all instances of a specific Mixpanel event</h3><p>Sometimes you accidentally send the wrong event to your project and want to delete all instances of that particular event. While actually deleting a specific Mixpanel event from their servers isn’t possible, you can hide and drop that event from the UI, which will feel similar to an end user.</p><p>Hidden events will no longer show up in the visible part of the event dropdown list when you’re looking to add an event to a report. Instead, they will be under the “Hidden Events” section of the dropdown (shown below). Dropped events will no longer be processed by Mixpanel, even if they are still being sent. The closest you can get to deleting an event is to do both.</p><figure><img alt="Mixpanel hidden events in event selection dropdown" src="https://cdn-images-1.medium.com/max/868/0*Mw-T8h1IXQs2W3li" /><figcaption>Hidden events in the event selection dropdown</figcaption></figure><p><strong>Step 1: Get the right access level</strong></p><p>Hiding events can only be done by users who have “Admin” or “Owner” privileges. If you aren’t sure which one you are, just click on the gear icon on the top right of the screen. Your role will be listed right under your name.</p><p>In the screenshot below, my role is “Consumer”, which means I don’t have the right permissions to hide or drop an event.</p><figure><img alt="Access level of a user in Mixpanel" src="https://cdn-images-1.medium.com/max/572/0*ylLbzxlw80qtg5il" /><figcaption>Access level of a user in Mixpanel</figcaption></figure><p><strong>Step 2: Find your event in Lexicon</strong></p><p>Hiding an event is done through the “Lexicon” feature of Mixpanel. You can find it under the data management icon on the top right of your screen. When you go to Lexicon, search for the event you want to delete.</p><figure><img alt="Where to find the Lexicon option" src="https://cdn-images-1.medium.com/max/904/0*iIIY0wWUezDz6R5M" /><figcaption>Where to find the Lexicon option</figcaption></figure><p><strong>Step 3: Hide and drop your event in Lexicon</strong></p><p>When you find your event, check the box to the left of it. A button will appear on the top of the screen that says “Hide”. Click that button and confirm to hide your event. Then drop the same event using the “Drop” button.</p><p>In the image below, the “Bundle Landing Page” is selected for hiding and dropping.</p><figure><img alt="Snapshot of events in Lexicon" src="https://cdn-images-1.medium.com/max/1024/0*QZt5lABOYujj6RQu" /><figcaption>Snapshot of events in Lexicon</figcaption></figure><p><strong>Step 4: Make sure the faulty code is removed</strong></p><p>It’s great to remove an event from the Mixpanel user interface, but a long-term solution is to also keep the faulty event from being sent to Mixpanel. Ask your engineering team to fix the issue that caused the faulty event data, so you don’t have to deal with it again in the future.</p><h3>Remove Mixpanel events in a specific time range</h3><p>Sometimes you accidentally trigger an event a whole bunch of times, which can really mess up your reports. The other instances of that event are fine, you just don’t want the ones that were triggered in a specific time range.</p><p>As we’ve mentioned before, Mixpanel doesn’t provide a way to actually delete a subset of your events. However, there is a workaround that effectively accomplishes the same thing using the “Custom Events” feature.</p><p>What we’re going to do here is to create a copy of the existing event that excludes all the faulty data, and then use this new clean event instead of the old one. The downside to this method is that you will have to go through your existing reports and replace the old event with the new one.</p><p><strong>Step 1: Open the “Custom Event” creator</strong></p><p>The easiest way to reach the custom event creator is to open the dropdown for adding events in any of the reports. The “Create Custom Event” button will be at the very bottom of the dropdown list.</p><figure><img alt="Button for creating a custom event in Mixpanel" src="https://cdn-images-1.medium.com/max/1024/0*YYz6a-EEIRJ4KR1n" /><figcaption>Button for creating a custom event in Mixpanel</figcaption></figure><p><strong>Step 2: Add your event and an inline filter</strong></p><p>In the custom event creator, add the faulty event. Then hover over the event so the filter icon appears (shown in the red box in the image below). Click it to add a filter.</p><figure><img alt="Adding a filter to a custom event" src="https://cdn-images-1.medium.com/max/1024/0*VdUubnggA3kreMKh" /><figcaption>Adding a filter to a custom event</figcaption></figure><p><strong>Step 3: Filter out the date range that contains faulty data</strong></p><p>From the dropdown menu, select the “Time” property. This refers to the time the event was triggered. The default time range filter is “Last 7 days”. Click on Last and change it to “Not Between”. Then select the date range containing faulty data, so the event only tracks any dates outside of that.</p><figure><img alt="Date range filter for custom event" src="https://cdn-images-1.medium.com/max/936/0*UGBLbFKKrdOL2uCM" /><figcaption>Date range filter for custom event</figcaption></figure><figure><img alt="Saving a custom event in Mixpanel" src="https://cdn-images-1.medium.com/max/1024/0*WeC0uqNzgZHraTqZ" /><figcaption>Saving a custom event in Mixpanel</figcaption></figure><p><strong>Step 4: Name your new event, save it, and share it</strong></p><p>Give your event a name. I like to keep the original name and just add “(Fixed)” at the end. Click the “Save” button to complete your event creation. Note that this only saves the event for you. If you want to share access to this custom event with others in your project, click the “Save and Share” button instead and give access to your whole project.</p><figure><img alt="Sharing a custom event in Mixpanel" src="https://cdn-images-1.medium.com/max/1024/0*1matn2yk9XqPtdiS" /><figcaption>Sharing a custom event in Mixpanel</figcaption></figure><p><strong>Step 5: Hide the old event</strong></p><p>Now that you’ve created a new event that leaves out the faulty data, you should remove the old event so that it doesn’t get accidentally used by your teammates.</p><p>The process is exactly as outlined in our section about removing all instances of an event:</p><ol><li>Go to Lexicon and find your event</li><li>Check the box next to it and choose the “Hide” and “Drop” options</li></ol><p>Now you have a new event without any of the faulty data, and your old event is hidden. Make sure you update the code snippets in your product so you no longer get any faulty data.</p><h3>Remove Mixpanel events triggered by specific users</h3><p>Sometimes all the faulty events were triggered by one or several users. In a situation like this, you have to take a very similar approach to what we did for faulty events that were triggered in a specific time range. In fact, the only thing that’s different is the filter applied in step 3 of the project.</p><p><strong>Step 1: Open the “Custom Event” creator</strong></p><p>The easiest way to reach the custom event creator is to open the dropdown for adding events in any of the reports. The “Create Custom Event” button will be at the very bottom of the dropdown list.</p><figure><img alt="Button for creating a custom event in Mixpanel" src="https://cdn-images-1.medium.com/max/1024/0*w9Bg9q3L4du5fIVD" /><figcaption>Button for creating a custom event in Mixpanel</figcaption></figure><p><strong>Step 2: Add your event and an inline filter</strong></p><p>In the custom event creator, add the faulty event. Then hover over the event so the filter icon appears (shown in the red box in the image below). Click it to add a filter.</p><figure><img alt="Adding a filter to a custom event" src="https://cdn-images-1.medium.com/max/1024/0*VH3A7U8rp65rlcl9" /><figcaption>Adding a filter to a custom event</figcaption></figure><p><strong>Step 3: Filter out the users who caused the faulty data</strong></p><p>From the dropdown menu, select a property that you can use to identify your users. In this example, we’ll pick the email address property. This tracks the email address of the user that triggered the event. Click the default “Is” option and change it to “Is Not”. Then select the users that triggered the faulty data.</p><figure><img alt="Adding an email filter to custom event" src="https://cdn-images-1.medium.com/max/958/0*MF9X2dNm3ROs0f8b" /><figcaption>Adding an email filter to custom event</figcaption></figure><figure><img alt="Saving a custom event in Mixpanel" src="https://cdn-images-1.medium.com/max/1024/0*k_QoCiNc1yUNm8az" /><figcaption>Saving a custom event in Mixpanel</figcaption></figure><p>The final step is just like <a href="https://docs.google.com/document/d/1xik6Zgj9WAd7tGzuh17WljwvBYI145XeOIDEON1z79c/edit#heading=h.mj3mykflyiau">step 4</a> of the section above. Name your event, save it, and share it with the other users in your project.</p><p><strong>Step 4: Name your new event, save it, and share it</strong></p><p>Give your event a name. I like to keep the original name and just add “(Fixed)” at the end. Click the “Save” button to complete your event creation. Note that this only saves the event for you. If you want to share access to this custom event with others in your project, click the “Save and Share” button instead and give access to your whole project.</p><figure><img alt="Sharing a custom event in Mixpanel" src="https://cdn-images-1.medium.com/max/1024/0*0cckqy214efRXEuo" /><figcaption>Sharing a custom event in Mixpanel</figcaption></figure><p><strong>Step 5: Hide the old event</strong></p><p>Now that you’ve created a new event that leaves out the faulty data, you should remove the old event so that it doesn’t get accidentally used by your teammates.</p><p>The process is exactly as outlined in our section about removing all instances of an event:</p><ol><li>Go to Lexicon and find your event</li><li>Check the box next to it and choose the “Hide” and “Drop” options</li></ol><p>Now you have a new event without any of the faulty data, and your old event is hidden. Make sure you update the code snippets in your product so you no longer get any faulty data.</p><h3>Final Notes</h3><p>There you have it! That should help you deal with having bad data in Mixpanel.</p><p>Remember what we stated at the beginning of this article: Mixpanel data is immutable, meaning that unless you put in a request to delete all your data, none of your events are actually deleted. What we’re doing here is accomplishing the same effect as deleting your events using clever workarounds that remove the bad data from your reports.</p><p>We hope you enjoyed this. If you want to improve your product analytics skills (including Mixpanel) even further, check out our <a href="https://productanalytics.academy/">Ultimate Product Analytics Course</a>. It’ll teach you everything you need, and nothing that you don’t.</p><p>And if you need any kind of help with your company’s Mixpanel implementation, send us a message <a href="https://www.mentatanalytics.co/contact">here</a>. We’re the highest-rated Mixpanel consulting agency in the world, and we work with companies of all sizes and industries.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a417ecc256ba" width="1" height="1" alt=""><hr><p><a href="https://medium.com/product-analytics-academy/dealing-with-bad-data-accidentally-sent-to-mixpanel-a417ecc256ba">Dealing with bad data accidentally sent to Mixpanel</a> was originally published in <a href="https://medium.com/product-analytics-academy">Product Analytics Academy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>