Hi,
I’m using mouseflow to record what users are doing on the site and for how long they for example preview content I have on a popup.
Is there an easy way to add two triggers onto those popups? One would be when the popup is shown (all popups are shown straight away after opening a page) the other one is when they close it.
Here’s what I got from Mouseflow support:
// When popup is opened, set the variable to the current time
var mf_timer = Date.now();
// When popup is closed, get the difference, send to Mouseflow and reset timer
var mf_timer = Date.now() – timer;
_mfq.push([“tag”, “Popup open ” + parseFloat(mf_timer/1000) + ” seconds”]);
var mf_timer = null;
Is there a way to use the plugin to do that or do I need to hardcode this in one of the files? If that’s the case which file should I edit?
Best Regards,
Rafal