Current Page

Current Page

Current Page

Feb 7, 2025

How to Analyze A/B Test Results in Hotjar with Optimal UX Integration

Introduction

Combine the power of Hotjar's behavioral analytics with your A/B testing data from Optimal UX. This integration enables you to analyze user behavior recordings, heatmaps, and other visual insights specifically for different experiment variants, helping you understand not just what users do, but how they interact with your variants.

Why Use Hotjar for A/B Test Analysis?

  • Watch real user sessions for specific experiment variants

  • Create heatmaps segmented by experiment participation

  • Understand user behavior through visual analytics

  • Combine quantitative and qualitative insights

  • Get direct visual feedback on variant performance

Step-by-Step Integration Guide

Enable the Integration

  1. Log into your Optimal UX dashboard

  2. Navigate to Settings > Integrations

  3. Locate the Hotjar integration card

  4. Toggle the integration switch

Understanding Data Flow

When enabled, Optimal UX automatically sends experiment participation data to Hotjar as custom events:

  • Events are triggered using the Hotjar JavaScript API

  • Event names follow the format: viewed_optux_[experiment slug]_[variant name]

  • Example: For an experiment with slug "xyz123" and variant "Variant B", the event would be viewed_optux_xyz123_variant_b

Security Note: Optimal UX uses experiment slugs instead of full experiment names to ensure data security.

Using Experiment Data in Hotjar

Creating Segments

  1. Open your Hotjar dashboard

  2. Navigate to Recordings

  3. Use the "Event" filter

  4. Find an event that starts with "viewed_optux_"

  5. Select your experiment event

  6. Click "Save Segment"

Analysis Capabilities

  • View recordings filtered by experiment variant

  • Create variant-specific heatmaps

  • Compare user behavior across variants

  • Analyze form analytics per variant

  • Track rage clicks and user frustration by variant

Viewing Experiment Data

Recordings

  1. Go to Recordings in Hotjar

  2. Apply your experiment segment filter

  3. Watch sessions from specific variant groups of your A/B test

Heatmaps

  1. Create a new heatmap

  2. Select your A/B test segment

  3. Collect data for variant-specific interactions

Common Use Cases

  • Compare click patterns between variants

  • Identify user confusion points

  • Analyze scroll depth differences

  • Monitor form abandonment by variant

  • Track user paths through new features

Conclusion

The integration between Optimal UX and Hotjar bridges the gap between A/B testing and behavioral analytics. By combining these tools, you can understand not just which variants perform better, but why they perform better through direct user behavior observation.