I'm using Mixpanel with Rudderstack. For session replays, all recordings are capturing against an ID like this: $device:uuid Instead of just uuid. This means they're not getting stitched together with the anonymous_id from Rudderstack. We've just used the code directly off the Mixpanel docs, so just wanted to check what we were missing. I can see it manually appends $device: - will there be any issues if I stop appending this? Thanks!
Hi Judy! Julianne from Mixpanel Support here. As you noted, the example code for implementing session replay with Rudderstack does include a line that appends $device: to the ID being sent to Mixpanel. Due to the various configurations available, though this line may not be necessary. If the users in your project don't have $device appended to their anonymous distinct IDs, then I would recommend removing that line to connect the replays to the correct user.
Can I provide the feedback that the code provided for the Rudderstack integration is incorrect, then? By default, Rudderstack doesn't append $device:
Appreciate the feedback! The exact behavior depends on the ID Merge version of the project. The example code is correct for projects on Simplified ID Merge but not for those on Original ID Merge. That said, I've flagged internally that this behavior should be clarified in the docs.