With Mouseflow, it's easy to seamlessly integrate into chat software like Zopim. You can do the integration both ways, either adding the playback URL to the chat session inside Zopim, or add customer details from Zopim into the Mouseflow session. Let's go through both options here.
What happens in the code is the following:
_mfq.push( ... )to make sure the inner function is called when Mouseflow's context is fully loaded.
$zopim( ... )to make sure Zopim's livechat object is fully loaded.
$zopim.livechat.setNotes( ... )to add the playback URL as a note. The note will contain the text "Mouseflow session: " and then the playback URL (requires that you are logged into your Mouseflow account)
The above code checks if the Zopim livechat object has an email address registered, and if so, adds it as a custom variable to Mouseflow. You can see all the
get methods here. To enhance this integration further, you can use the above email address to identify the user directly in Mouseflow. This is done like this: