Set Up Heatmaps
See exactly where visitors click, scroll, and get stuck.
What this covers: Choosing a heatmap tool (Hotjar, Crazy Egg, Microsoft Clarity, FullStory), installing tracking on WordPress, Shopify, and Squarespace, and configuring click maps, scroll maps, and session recordings.
Who it’s for: Site owners and marketers with existing traffic who want to see exactly where users click, scroll, and get stuck to improve conversions.
Key outcome: You’ll have a heatmap tool recording user sessions on your key pages, with click and scroll data collecting to reveal conversion barriers that analytics alone can’t show.
Time to read: 11 minutes
Part of: Analytics & Measurement series
See where users click, scroll, and get stuck. Reveal what Google Analytics can’t show you through visual user behavior analysis that transforms assumptions into conversion improvement opportunities.
Heatmap and user behavior analytics provide visual insights into how visitors actually interact with your website, revealing improvement opportunities that traditional analytics miss. This visual intelligence helps identify and address user experience barriers that prevent conversions.
The Behavior Analytics Gap
Traditional analytics show what happens but not why it happens. Visual behavior analysis reveals where users click, how they scroll, what captures their attention, and where they encounter friction during their website journey.
Why Visual Behavior Analytics Create Competitive Advantage
Heatmaps and user behavior tools show the story behind your analytics numbers – revealing user interaction patterns, attention distribution, and navigation challenges that standard metrics can’t capture. This visual intelligence enables precision improvement based on actual user behavior rather than assumptions.
The data revelation: Visual analytics bridge the gap between what businesses think users do and what users actually do, enabling improvement strategies based on observed behavior patterns rather than guesswork.
Understanding User Behavior Analytics Value
E-commerce improvement insights: Visual analysis can reveal that users struggle to locate key elements like coupon codes or struggle with specific form fields. Addressing these issues based on actual user behavior data creates measurable improvements in completion rates.
B2B lead generation improvements: Form behavior analysis shows where potential leads encounter difficulty, such as confusing field labels or overwhelming option lists. Simplifying based on observed user interactions typically improves form completion rates.
Local business contact improvement: Heat mapping reveals whether important contact information receives adequate user attention. Planned placement of contact elements based on user attention patterns generally improves inquiry generation.
Do You Need Behavior Analytics? (Assessment Guide)
Determine whether visual behavior analysis will provide practical insights for your specific business goals and website challenges.
When Behavior Analytics Drive Results
High-impact scenarios:
- Low conversion rates: Visual analysis reveals conversion barriers
- High bounce rate on key pages: Understand why visitors leave immediately
- Form abandonment issues: See exactly where users stop filling forms
- Mobile user experience problems: Identify touch and scroll issues
- UX improvement: Understand attention patterns and engagement
Business indicators for behavior analytics:
- Traffic exists but conversions are lower than expected
- Google Analytics shows page views but limited engagement patterns
- Customer feedback mentions website usability issues
- A/B tests produce inconclusive results
- Multiple conversion points need improvement
Quick Behavior Analysis Assessment
Evaluate your current improvement capability:
- Review bounce rates on important pages (high bounce rates may indicate issues)
- Check form analytics in GA4 for abandonment points
- Analyze mobile vs. desktop behavior differences
- Identify highest-traffic, lowest-converting pages for analysis priority
Most businesses discover:
- Conversion barriers exist in unexpected places
- Mobile user behavior differs significantly from desktop
- Important content positioning doesn’t match user attention patterns
- Form fields create confusion that analytics don’t reveal
Planned Heatmap Implementation
Choose behavior analytics tools and implementation approaches that provide practical insights rather than overwhelming data visualization.
Business-Focused Tool Selection
Hotjar (Recommended for most businesses):
- Strengths: Easy setup, complete features, WordPress integration
- Best for: Small to medium businesses, conversion improvement focus
- Pricing: Free plan available, scales with traffic volume
- Key features: Heatmaps, session recordings, feedback polls, form analytics
- Website: https://www.hotjar.com
Crazy Egg (E-commerce focused):
- Strengths: Advanced click tracking, Shopify integration
- Best for: E-commerce sites, product page improvement
- Pricing: 30-day free trial, competitive pricing for online stores
- Key features: Click heatmaps, scroll maps, overlay reports
- Website: https://www.crazyegg.com
Microsoft Clarity (Free complete option):
- Strengths: Completely free, unlimited sessions, privacy-focused
- Best for: Businesses wanting analysis without budget constraints
- Limitations: Fewer customization options than paid tools
- Key features: Heatmaps, session recordings, automated insights
- Website: https://clarity.microsoft.com
FullStory (Enterprise solution):
- Strengths: Advanced search and segmentation capabilities
- Best for: Large businesses, complex user journey analysis
- Pricing: Higher cost, designed for enterprise-level analysis
- Key features: Complete session capture, advanced analytics, team collaboration
- Website: https://www.fullstory.com
WordPress Heatmap Setup Walkthrough
Hotjar WordPress implementation:
- Create Hotjar account and obtain tracking code
- Install tracking code via WordPress plugin or manual insertion
- Configure heatmap settings for key pages and conversion goals
- Set up recordings for user session analysis
- Establish feedback polls for direct user insight collection
WordPress Tracking Code Installation
Note: Replace YOUR_SITE_ID with your Hotjar Site ID, found in your Hotjar dashboard under Sites & Organizations.
// Method 1: Plugin installation (recommended)
// Install "Hotjar" plugin from WordPress repository
// Enter tracking ID in plugin settings
// Method 2: Manual header.php installation
// Add before closing </head> tag:
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:YOUR_SITE_ID,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
WordPress Behavior Tracking Configuration
- WooCommerce integration: Enable e-commerce tracking in Hotjar dashboard
- Contact form tracking: Set up form analysis for Contact Form 7, Gravity Forms
- Page-specific heatmaps: Configure tracking for high-value pages
- Mobile-responsive tracking: Ensure mobile user behavior capture
Shopify Behavior Analytics Setup
Shopify + Hotjar integration:
- Access Shopify admin panel
- Navigate to Online Store → Themes → Actions → Edit Code
- Locate theme.liquid file
- Add Hotjar tracking code before closing </head> tag
- Configure e-commerce tracking in Hotjar dashboard
Shopify-Specific Tracking Code
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:{{ settings.hotjar_site_id }},hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
<script>
{% if template contains 'product' %}
hj('event', 'product_view');
{% endif %}
{% if checkout.order_id %}
hj('event', 'purchase');
{% endif %}
</script>
Shopify Tracking Priorities
- Product page user behavior analysis
- Cart and checkout process improvement
- Mobile shopping experience evaluation
- Category page navigation patterns
Heatmap Setup Questions
How much data do I need for useful heatmaps?
Minimum 1,000 sessions per page for reliable patterns. Below that, individual behavior skews the data. For low-traffic pages, wait longer or combine similar page types (e.g., all product pages into one heatmap).
Do heatmaps slow down my site?
Slightly. Most tools add 10-50KB of JavaScript and 50-100ms load time. For most sites, this is negligible. If performance is critical, use sampling (record only a percentage of sessions) instead of tracking everyone.
What’s the difference between click maps and scroll maps?
Click maps show where users click or tap. Scroll maps show how far users scroll before leaving. Use click maps to see what gets attention; use scroll maps to see if important content is above the fold.
Can heatmaps replace user testing?
No. Heatmaps show what users do, not why. You might see nobody clicks a button—but not whether it’s invisible, confusing, or irrelevant. Combine heatmaps with surveys or user interviews for the full picture.
Squarespace Behavior Analytics Integration
Squarespace heatmap setup:
- Access Squarespace dashboard
- Navigate to Settings → Advanced → Code Injection
- Add tracking code to Header Code Injection
- Configure page-specific tracking as needed
Squarespace Tracking Implementation
Note: Replace YOUR_SITE_ID with your Hotjar Site ID from your dashboard.
// Squarespace Header Code Injection
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:YOUR_SITE_ID,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
Sources
- https://www.hotjar.com
- https://www.crazyegg.com
- https://clarity.microsoft.com
- https://www.fullstory.com
Heatmap Questions Answered
How many pageviews do you need for reliable heatmap data?
Collect at least 1,000 pageviews per page before drawing conclusions from heatmap data. For click maps on pages with multiple CTAs, aim for 2,000-5,000 views. Fewer than 500 views will produce noisy, misleading patterns.
What is the difference between click maps, scroll maps, and move maps?
Click maps show where users click or tap, revealing which elements get attention. Scroll maps show how far down the page users scroll, with color gradients indicating drop-off points. Move maps track mouse movement, which loosely correlates with eye gaze on desktop but is unreliable on mobile.
Do heatmap tools slow down your website?
Most heatmap tools add 20-80KB of JavaScript and 50-200ms of load time. Load the heatmap script asynchronously and defer it until after your critical content renders. Tools like Hotjar, Microsoft Clarity, and PostHog offer async loading by default to minimize performance impact.
Is Microsoft Clarity a good free heatmap tool?
Microsoft Clarity is an excellent free option with unlimited traffic, heatmaps, session recordings, and rage-click detection. It integrates directly with GA4 and has no sampling limits. The main trade-off is that Microsoft may use anonymized data to improve its products.
✓ Confirming Your Heatmaps Are Recording
- Your heatmap tool shows “Recording” or “Active” status
- You see your own test session appear in the recordings list
- After 24 hours, you have at least 100 sessions to analyze
First milestone: Wait for 500+ sessions before drawing conclusions. Heatmaps with too little data are misleading.