You can use Mouseflow with A/B testing or with multivariate (MVT) testing tools. Put simply, Mouseflow can record sessions for multiple versions of a website. All you need to do is either enable one of the Integrations we have with tools like

or you can set it up manually by adding a line of JavaScript code that alters how Mouseflow tracks the page’s path (e.g. www.website.com/home/pg1/stuff).


Manual setup

Let’s say you want to test two versions of your homepage - version A and version B. If you’re testing version A, then you tell Mouseflow that the path will be:

/home/ver-A

Or if it’s version B:

/home/ver-B

You will now see that '/home/ver-A' and '/home/ver-B' appear in the recording and page analysis lists.


An example of the modified Tracking Code would look like this:

<script type="text/javascript"> 
var mouseflowPath = "/landingpage/version-a";

if (pageVersion === "B")
mouseflowPath = "/landingpage/version-b";

window._mfq = window._mfq || []; (function() {
var mf = document.createElement("script"); mf.type = "text/javascript"; mf.defer = true;
mf.src = "//cdn.mouseflow.com/projects/your-website-id.js";
document.getElementsByTagName("head")[0].appendChild(mf);
})();
</script>
Did this answer your question?