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.