Google Analytics is the most widely used web analytics platform that tracks website traffic and user behavior. It provides comprehensive…
Full ReviewHotjar provides visual behavior analytics through heatmaps and session recordings to help understand how users interact with websites. It also…
Full ReviewHotjar and Google Analytics 4 (GA4) are designed to answer different types of questions. GA4 tells you what users do on your website through quantitative data: page views, conversion rates, bounce rates, and traffic sources. Hotjar tells you why users behave the way they do through qualitative data: heatmaps, session recordings, and user feedback surveys.
Hotjar has a native Google Analytics integration that allows you to filter Hotjar session recordings using data from GA4. This means you can use GA4 to identify a problematic pattern (for example, a high drop-off rate on a checkout page), then jump into Hotjar to watch recordings of users who experienced that exact behavior.
The Hotjar-GA integration works by connecting Hotjar to your Google Analytics property so that GA data is available as a filter within Hotjar's recordings dashboard. Specifically, it enables you to:
This integration pulls metadata from GA into Hotjar's filtering system. It does not send Hotjar data back to GA.
Before setting up the integration, confirm that you have:
Log in to Hotjar and navigate to Integrations from the left sidebar. Find Google Analytics in the integrations list. Click Connect.
Hotjar will prompt you to sign in with your Google account. Select the Google account that has access to your GA4 property. Grant the requested permissions for Hotjar to read your GA data. This is a read-only connection; Hotjar does not modify any data in your GA property.
After authentication, Hotjar will display a list of GA properties associated with your Google account. Select the GA4 property that corresponds to the website where your Hotjar tracking code is installed. Make sure the GA4 property and the Hotjar site match the same domain.
Once connected, Hotjar will confirm the integration is active. You can verify it by going to the Recordings section and checking that GA-based filters (like traffic source and landing page) are now available in the filter panel. It may take a short time for data to start appearing in the filters.
Beyond the native integration filters, you can use GA4 event data to control when Hotjar captures recordings. This is useful for reducing the volume of recordings and focusing on specific user behaviors.
Hotjar provides a JavaScript Events API that lets you tag recordings with custom events. You can tie this to GA4 events by firing a Hotjar event whenever a specific GA4 event occurs. The approach is:
This allows you to bridge GA4's event tracking with Hotjar's recording system. For example, if GA4 shows a 40% drop-off at the payment step, you can tag that step with a Hotjar event and then watch recordings of users who reached that point.
The real value of using Hotjar and GA4 together is the workflow of moving between numbers and behavior. Here is a practical framework:
Use GA4 to spot anomalies or underperformance. Common examples include:
Once you have identified the quantitative problem, switch to Hotjar:
After Hotjar reveals the qualitative insight (for example, users cannot find the checkout button on mobile), make the change and track the impact in GA4. Compare the conversion rate or drop-off rate before and after the change using GA4's date comparison features.
For deeper analysis, you can link user sessions between Hotjar and GA4 using a shared user identifier:
Note that identifying users in Hotjar requires their Business plan or above, and you must comply with privacy regulations when passing user data to either platform.
| Scenario | GA4 Role | Hotjar Role |
|---|---|---|
| High bounce rate on landing page | Identifies the page and traffic segments with highest bounce | Heatmaps show what users see and ignore; recordings reveal exit behavior |
| Low form completion rate | Funnel report shows which step loses users | Recordings show where users hesitate, re-type, or abandon the form |
| Mobile conversion gap | Device comparison report shows mobile underperformance | Mobile recordings reveal layout issues, tap target problems, or loading issues |
| Campaign underperformance | Campaign report shows low conversion for a specific ad set | Filter recordings by that traffic source to see if the landing page matches user expectations |
If you need tighter integration between quantitative and qualitative analytics, some alternatives exist. Microsoft Clarity is a free heatmap and session recording tool that has a native GA4 integration with deeper filtering capabilities. FullStory and Heap combine quantitative analytics with session replay in a single platform, eliminating the need for two separate tools. However, the Hotjar plus GA4 combination remains popular because both tools have generous free or affordable tiers and each excels in its respective category.
These platforms can help you connect Google Analytics and Hotjar without writing code:
Compare Google Analytics vs Hotjar side by side »