Mouseflow Help & Support

Recording Content After Page Has Loaded

Follow

If content is being loaded on your site after the rest of the page has been loaded, it might not be picked up in the recordings. Fortunately, this is easily solved by adding the following line into your tracking code:

// Delay recording by 5000 milliseconds (5 seconds)
var mouseflowHtmlDelay = 5000;

 

This delays the recording session from starting, which gives the other content a chance to load. You can change the delay time by altering the numerical value (e.g. 5000 = 5 seconds, 4000 = 4 seconds, etc). You may need to experiment with the delay to find the perfect time frame for your website.

The line of code above needs to be inserted right after the opening <script type =”text/javascript”> line. 

Example

<script type="text/javascript">
  var mouseflowHtmlDelay = 5000;
  var _mfq = _mfq || [];
  (function() {
      var mf = document.createElement("script"); mf.type = "text/javascript"; mf.async = true;
      mf.src = "//cdn.mouseflow.com/projects/your-website-id.js";
      document.getElementsByTagName("head")[0].appendChild(mf);
  })();
</script>

 

Tags: record content dynamic page delay session support

Have more questions? Submit a request

Comments

Powered by Zendesk