User behavior analytics with heatmaps and recordings.
## Hotjar MCP Server: Behavior Analytics The **Hotjar MCP Server** integrates Hotjar's behavior analytics platform into Google Antigravity. This enables heatmaps, session recordings, and user feedback to understand how users interact with your product. ### Why Hotjar MCP? Hotjar reveals user behavior: - **Heatmaps**: See where users click - **Recordings**: Watch user sessions - **Surveys**: Collect user feedback - **Funnels**: Identify drop-offs - **Easy Setup**: No-code installation ### Key Features #### 1. Get Heatmap Data ```python import requests headers = {"Authorization": f"Bearer {api_key}"} # Get heatmap for URL response = requests.get( "https://insights.hotjar.com/api/v1/sites/{site_id}/heatmaps", headers=headers, params={"url": "https://example.com/pricing"} ) heatmap = response.json() print(f"Clicks: {heatmap['click_count']}") ``` #### 2. Session Recordings ```python # List recordings response = requests.get( "https://insights.hotjar.com/api/v1/sites/{site_id}/recordings", headers=headers, params={"from_date": "2024-01-01", "to_date": "2024-03-01"} ) for recording in response.json()["recordings"]: print(f"Duration: {recording['duration']}s") print(f"Pages: {recording['pages_visited']}") ``` #### 3. Survey Responses ```python # Get survey responses response = requests.get( "https://insights.hotjar.com/api/v1/sites/{site_id}/feedback", headers=headers ) for feedback in response.json()["responses"]: print(f"Rating: {feedback['rating']}") print(f"Comment: {feedback['comment']}") ``` ### Configuration ```json { "mcpServers": { "hotjar": { "command": "npx", "args": ["-y", "@anthropic/mcp-hotjar"], "env": { "HOTJAR_API_KEY": "your-api-key", "HOTJAR_SITE_ID": "your-site-id" } } } } ``` ### Use Cases **UX Research**: Understand user behavior. **Conversion Optimization**: Find and fix drop-offs. **User Feedback**: Collect qualitative insights. The Hotjar MCP Server brings behavior analytics to Antigravity.
{
"mcpServers": {
"hotjar": {}
}
}