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.

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:


Or if it’s version 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 = "//";
Did this answer your question?