Shahid Malla

Heatmaps & Session Replay for WHMCS (Clarity & Hotjar)

Heatmaps tell you what GA4 can't — where customers try to click that isn't clickable, where they get stuck on forms. The practical setup for Microsoft Clarity + Hotjar on WHMCS.

S Shahid Malla
· Feb 15, 2026 · 5 min read · 81 views
shahidmalla.com/blog/heatmaps-session-replay-for-whmcs-clarity-hotjar
Heatmaps & Session Replay for WHMCS (Clarity & Hotjar)
On this page (15 sections)

Heatmaps tell you what GA4 can't: which buttons people try to click that aren't clickable, which form fields confuse them, where they hover before bouncing. For a WHMCS install — where the order form is your conversion engine — this data is gold.

Microsoft Clarity (free) and Hotjar (paid) are the two tools worth using. Here's the practical setup.

Clarity vs Hotjar — pick one

Microsoft ClarityHotjar
PriceFree, unlimitedFree tier limited; paid $32+/mo
Session replayYesYes
HeatmapsYesYes
Surveys / pollsNoYes
Sample rate100% (no limit)Free tier samples
Integration with GA4YesYes

For most hosting businesses: Clarity. It's free, doesn't sample, and the basic features cover 90% of what you need. Upgrade to Hotjar if you specifically want surveys + heatmaps in one tool.

Step 1 — Install Clarity

  1. Go to clarity.microsoft.com, create a free account.
  2. Add a new project. Get the tracking script.
  3. Paste it into your WHMCS theme's header.tpl right before </head>:
<!-- Clarity tracking code -->
<script type="text/javascript">
    (function(c,l,a,r,i,t,y){
        c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
        t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
        y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
    })(window, document, "clarity", "script", "YOUR_PROJECT_ID");
</script>

Data starts flowing immediately. Recordings appear in the dashboard within minutes; heatmaps build up over 24-48 hours.

Step 2 — Tag key events for filtering

Out of the box, Clarity records everything. To find specific journeys later, push custom events:

// Order completed
window.clarity && window.clarity('set', 'order_completed', 'true');
window.clarity && window.clarity('identify', '{$client_email}');

// User type (admin / customer)
window.clarity && window.clarity('set', 'user_role', '{$is_admin ? "admin" : "customer"}');

Now you can filter sessions: "show me customers who completed an order" or "show me admin sessions only."

Step 3 — Mask sensitive fields

You don't want PII or payment data in session replays. Clarity masks password fields by default. Add credit-card and other sensitive fields by adding a CSS class:

<input type="text" name="card-number" class="clarity-mask">
<input type="text" name="cvv" class="clarity-mask">

Or globally in Clarity dashboard: Settings → Masking → Add CSS selector: input[name*="card"], input[name*="cvv"], input[name*="ssn"].

Step 4 — What to actually look for

Heatmaps + recordings answer specific questions:

1. Order form drop-off

Filter sessions: "visited order page, did not complete." Watch 10 recordings. You'll see the consistent friction point — usually a confusing field, a payment gateway that throws an error, or the customer trying to click something that isn't a button.

2. Dead clicks

Clarity highlights "rage clicks" (multiple rapid clicks in one place) and "dead clicks" (clicks on non-clickable elements). Both signal UI confusion. If lots of users click your "Powered by WHMCS" logo, they think it's a link to something.

3. Scroll depth on key pages

Your pricing page: how far down do most visitors scroll? If 70% bounce before reaching the comparison table, restructure the page.

4. Mobile-specific issues

Filter to mobile sessions. The mobile heatmap often shows entirely different click patterns. You'll catch buttons too small to tap, popups that obscure content, forms that don't fit the viewport.

5. Admin / support team workflows

Watch real support reps using the WHMCS admin. You'll find inefficiencies: 5-click paths to common tasks, search filters they ignore, fields they always fill the same way.

Step 5 — Connect Clarity to GA4

Sessions in Clarity, conversions in GA4 — link them so you can pivot between.

  1. In Clarity: Settings → Integrations → Google Analytics 4 → connect.
  2. Authorize.
  3. Pick the GA4 property.

Now GA4 events you've tagged (like purchase) show up as filters in Clarity, and a Clarity custom dimension appears in GA4 (lets you jump straight to a customer's session recording from a GA4 user).

Practical wins I've shipped after a week of Clarity

  1. Discovered that customers on iPhone Safari couldn't tap the "Pay Invoice" button (CSS issue — fixed; conversion +12%).
  2. Found that the "Forgot Password" link was being missed because it was below the login button (moved; password-reset tickets dropped by half).
  3. Noticed that customers were trying to click hosting plan names as links (they weren't); turned them into links → conversion bump.
  4. Watched a customer struggle with the country dropdown for 90 seconds → added IP-based pre-fill.

Every one of these came from watching 10-20 real sessions. None would have appeared in GA4 reports.

Common pitfalls

"Recordings show blurry placeholder text." That's the privacy masking — working as intended. Don't disable; mask more, not less.

"Tracking script slows page load." Clarity is async by default; should not noticeably impact. If it does, you're loading multiple analytics tools synchronously; consolidate via GTM.

"GDPR compliance for session recording?" Most jurisdictions consider recording a form of personal data processing. Add to your cookie consent flow; only load Clarity after consent. See my GDPR guide.

"Heatmap is biased to fast users." Heatmaps weight clicks by all visitors. Filter to "completed purchase" sessions to see what successful customers do, vs. what bouncers do.

My take — watch sessions weekly

Heatmaps tell you the aggregate; session replays tell you the story. I review 5-10 sessions per week on every active WHMCS client. The improvements I ship come from these recordings, not from spreadsheets.

Going further


I instrument heatmaps + session replays on WHMCS for hosting businesses — privacy-safe setup, conversion-rate review, the changes that move the needle. Tell me what you want to learn and I'll send a quote in 24 hours.

Share this article

S

Written by

Shahid Malla

WHMCS expert, full-stack developer, technical lead at Fada.cloud. 10+ years building hosting platforms, custom modules, and automation that ships.

Trusted platforms

Prefer to hire through a platform?

Not sure about working directly? Hire me through Fiverr or Upwork instead - same me, same work, with the platform's buyer protection and escrow.

Got a project like this?

Tell me what you need - I'll send a real quote within 24 hours.