Skip to main content
All CollectionsLegacy
Warning: Lazy Loading May Affect Heatmap Accuracy
Warning: Lazy Loading May Affect Heatmap Accuracy

Lazy loading, heatmap accuracy, initial page load, user interactions, script placement, scroll depth, data collection, Heatmap.com, page performance

K
Written by Kenn Palm
Updated over 4 months ago

What is Lazy Loading?

Lazy loading is a technique that delays the loading of non-critical resources at page load time. It can improve initial page load performance, but may impact heatmap data collection.

The Issue with Lazy Loading

When the Heatmap.com script is lazy loaded:

  1. Initial user interactions may be missed

  2. Early page events might not be captured

  3. Scroll depth measurements could be inaccurate

This can lead to incomplete or misleading heatmap data, especially for above-the-fold content.

Recommended Solution

For optimal heatmap accuracy, we strongly recommend:

  1. Load the Heatmap.com script as early as possible in your page's <head> section

  2. Avoid using lazy loading techniques of our script

Implementation Best Practice

Place our script immediately after the opening <head> tag:

<head>

<script>

// Heatmap.com script here

</script>

<!-- Other head elements -->

</head>

This ensures our script loads promptly, capturing all user interactions from the moment the page starts rendering.

Need Help?

If you're unsure about your implementation or have concerns about data accuracy, please contact our support team at support@heatmap.com. We're here to help ensure you get the most accurate and comprehensive heatmap data possible.

Did this answer your question?