If you have multiple domains listed under the "Domain(s)" section, and if they share the same path (i.e. 'mywebsite.com/example/' and 'shop.mywebsite.com/example'), all of their data will be combined. You can get around this by setting a virtual path using the mouseflowPath variable.

You could use a conditional JavaScript statement such as this:

if (document.domain === "shop.mywebsite.com") { 
var mouseflowPath = "shop.mywebsite.com" + window.location.pathname;

This would ensure that all visits to 'shop.mywebsite.com' would be saved in an individual map in the page analysis list, shown with the subdomain in front of that path. You would need to set the mouseflowPath variable before the tracking code was loaded - preferably at the start of the tracking code, such as this:

<script type="text/javascript">
if (document.domain == "shop.mywebsite.com") {
var mouseflowPath = "shop.mywebsite.com" + window.location.pathname;
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";

Did this answer your question?