Mixpanel Community Icon

Understanding Page Load Events in Mixpanel: Global vs. Generic

·
·

A page load event added to the generic page component is this called a global page load event or a generic page load event, how does Mixpanel identify this

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

    Hi B, 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, Mixpanel typically refers to this type of event as a "page view" event rather than a "global" or "generic" page load event. Mixpanel can automatically track page view events if you enable this feature during initialization. According to the Mixpanel SDKs: Javascript documentation: "Page view tracking is turned off by default. Page view events can be added automatically on every page load by enabling the track_pageview config option when creating the Mixpanel object."To enable automatic page view tracking, you would initialize Mixpanel like this: LBKSmixpanel.init('YOUR_PROJECT_TOKEN', { track_pageview: true // enable automatic pageview tracking });LBKSWhen enabled, Mixpanel will automatically track a page view event with the name $mp_web_page_view on every page load. This event includes properties such as page title, URL components, and marketing parameters.If you want to add additional properties to this default page view event, you can do so like this: LBKSmixpanel.track_pageview({ "page": "Pricing" });LBKSIt's worth noting that the default automatic page view tracking doesn't work well with single-page applications. For those cases, Mixpanel offers more specific configuration options to track dynamic page views.In summary, Mixpanel identifies this type of event as a "page view" event, and it can be set up to track automatically across your entire site when properly configured during initialization.

    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.