Mixpanel Community Icon

Tracking Pre-Install Sources with MobileSDK: A Guide

·
·

Can I use MobileSDK to track which channels (ads, organic search, social media, etc.) the pre was installed from?

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Hi 石川 明., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> 👋

    Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Based on the knowledge sources provided, tracking the channels through which a mobile app was installed using Mixpanel's Mobile SDK alone is not straightforward. Mobile attribution, especially for app installs, can be complex due to the way mobile devices handle attribution information. However, Mixpanel offers some solutions and recommendations for this:1. For Android, Google provides a Play Install Referrer Library that can help determine where installations came from. You can use the getInstallReferrer() method to retrieve the referrer URL string, parse it, and send that data to Mixpanel as properties in events. Traffic Attribution: Analyze your marketing channels2. For iOS, tracking channel attribution is more challenging because the App Store strips attribution data. Mixpanel recommends using a mobile attribution tool to track channel attribution on iOS. Traffic Attribution: Analyze your marketing channels3. Mixpanel suggests partnering with a mobile attribution service to reliably map the user journey for installs. They have a list of partners that they encourage customers to review for this purpose. Mobile Attribution4. There are three main ways mobile attribution partner integrations work with Mixpanel: - Webhooks/Callbacks - SDK → SDK integrations - Partner Server → Mixpanel integrations Mixpanel recommends using either Webhooks or the SDK → SDK route for the best configuration and correctness. Mobile AttributionIn conclusion, while the Mixpanel Mobile SDK alone may not provide comprehensive tracking of install channels, Mixpanel offers integration options with mobile attribution partners to achieve this goal. It's recommended to explore these partner integrations for accurate and comprehensive mobile attribution tracking.

    kapa.ai is still learning and improving, please let me know how I did by reacting below.

    ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.

  • Avatar of 石川 明.
    石川 明.
    ·
    ·

    kapa.ai Regarding the same analysis of the app, can I measure the time users spend in the app and analyze the time spent?

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Let me check the knowledge base for you again. One moment! 📚

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Yes, you can measure and analyze the time users spend in your app using Mixpanel. There are several ways to track and analyze session duration:1. Session Metrics: Mixpanel provides built-in session metrics that you can use to analyze time spent in the app. As mentioned in the Mixpanel documentation, each Session event comes with a "Session Duration (seconds)" property. You can use this to calculate average session duration or analyze the distribution of session lengths.2. Custom Event Tracking: You can implement custom event tracking to measure specific in-app activities. The Mixpanel blog post on mobile app event tracking explains how to track events with timestamps, which can be used to calculate time spent on specific activities.3. Timing Events: Mixpanel SDKs provide methods to time events. For example, in the iOS SDK, you can use the timeEvent() method to start timing an event and then track it later. This is useful for measuring the duration of specific actions within your app. Here's an example from the iOS Swift SDK documentation:

    Mixpanel.mainInstance().time(event: "Image Upload") // 20 seconds later... // track "Image Upload" event with "Duration" event prop set to 20 Mixpanel.mainInstance().track(event: "Image Upload") ```LBKSLBKS4. Analysis Tools: Once you've collected the data, you can use Mixpanel's analysis tools to gain insights. For example:LBKS - You can use the Insights report to visualize trends in session duration over time. - The Funnels report can help you understand how time spent relates to specific user actions or conversions. - You can create custom cohorts based on time spent in the app and analyze their behavior.LBKSFor a detailed example of analyzing session duration, check out the [Mixpanel documentation on Sessions](https://docs.mixpanel.com/docs/features/sessions#use-cases). It provides step-by-step instructions on how to calculate average session length and analyze the distribution of session durations.LBKSRemember, the exact implementation may vary depending on your specific app and the Mixpanel SDK you're using (iOS, Android, React Native, etc.), but the general principles remain the same across platforms.

    kapa.ai is still learning and improving, please let me know how I did by reacting below.

    ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.