Mixpanel Community Icon

Integrating EZ Track with New Session Replay: A Technical Inquiry

·
·

AK will EZ Track work with the new Session Replay, as follows, by adding record_sessions_percent: 50 to the existing script?:

<script src="https://mpeztrack.com/v1.0.0/eztrack.min.js" type="text/javascript"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
  mpEZTrack.init('111222333444555', { 
    window: false,
    youtube: true,
    inputs: true,
    extend: true,  // Expose the Mixpanel object
    profiles: false,  // Turn off automatic profile management
    debug: true,
	record_sessions_percent: 50 // record 50% of all sessions
  });
  • Avatar of Jono Y.
    Jono Y.
    ·
    ·

    Still waiting for the update. EZ Track has been a life saver. If you want to see why or how I use it, please DM and I’ll screen share. Primary use case is for startups that have zero engineers but still need product data. There are MANY startups like this.

  • Avatar of Jono Y.
    Jono Y.
    ·
    ·

    Maybe Autocapture is what the post above was referring to? Looking into this now. We do need to capture some text inputs, such as email, so that we can uniquely identify a user and build cohorts. I don’t see that covered in the auto capture doc here: https://docs.mixpanel.com/docs/tracking-methods/autocapture

  • Avatar of Jono Y.
    Jono Y.
    ·
    ·

    Confirmed that Mixpanel EZ Track and session replay are working. Here are a few snippets for anyone else who finds this topic. Enable Session Replay with EZ Track & Record All Sessions:

    <script src="https://mpeztrack.com/v2.0.0/eztrack.min.js" type="text/javascript"></script>
    mpEZTrack.init('PUT_YOUR_PROJECT_TOKEN_HERE', { 
        record_sessions_percent: 100 // 1 to 100
    });

    Enable Session Replay and Remove All Content Masks/Blockers By default, Session replay hides all images and replaces text with asterisks.

    <script src="https://mpeztrack.com/v2.0.0/eztrack.min.js" type="text/javascript"></script>
    mpEZTrack.init('PUT_YOUR_PROJECT_TOKEN_HERE', { 
        record_sessions_percent: 100, // 1 to 100
        record_block_selector: '',    // Ensures images and videos are not blocked
        record_mask_text_class: '',   // Ensures no elements are masked by class
        record_mask_text_selector: '' // Ensures no elements are masked by selector
    });

    TECH NOTEs:

    • If you are fiddling with implementing this code, pay attention to the commas (,) in your init script - adding a comma after each line, except for the last line. In the example above, record_sessions_percent: 100 record_block_selector: '' and record_mask_text_class: '' have a comma separating them.

    • Mixpanel EZ Track is a separate approach to implementing Mixpanel and while the Mixpanel team has been historically terrific 🙏 in supporting it, it may not always be supported.