Real User Monitoring
Implement Real User Monitoring (RUM) to capture Core Web Vitals, page load times, and custom performance events using Google Analytics, Datadog RUM, or New Relic.
Overview
This skill streamlines the process of setting up Real User Monitoring (RUM) for web applications. It guides you through the essential steps of choosing a platform, defining metrics, and implementing the tracking code to capture valuable user experience data.
How It Works
- Platform Selection: Helps you consider available RUM platforms (e.g., Google Analytics, Datadog RUM, New Relic).
- Instrumentation Design: Guides you in defining the key performance metrics to track, including Core Web Vitals and custom events.
- Tracking Code Implementation: Assists in implementing the necessary JavaScript code to collect and transmit performance data.
When to Use This Skill
This skill activates when you need to:
- Implement Real User Monitoring on a website or web application.
- Track Core Web Vitals (LCP, FID, CLS) to improve user experience.
- Monitor page load times (FCP, TTI, TTFB) for performance optimization.
Examples
Example 1: Setting up RUM for a new website
User request: "setup RUM for my new website"
The skill will:
- Guide the user through selecting a RUM platform.
- Provide code snippets for implementing basic tracking.
Example 2: Tracking custom performance metrics
User request: "I want to track how long it takes users to complete a purchase"
The skill will:
- Help define a custom performance metric for purchase completion time.
- Generate JavaScript code to track the metric.
Best Practices
- Privacy Compliance: Ensure compliance with privacy regulations (e.g., GDPR, CCPA) when collecting user data.
- Sampling: Implement sampling to reduce data volume and impact on performance.
- Error Handling: Implement robust error handling to prevent tracking code from breaking the website.
Integration
This skill can be used in conjunction with other monitoring and analytics tools to provide a comprehensive view of application performance.
Prerequisites
- Access to web application frontend code in ${CLAUDE_SKILL_DIR}/
- RUM platform account (Google Analytics, Datadog, New Relic)
- Understanding of Core Web Vitals metrics
- Privacy compliance documentation (GDPR, CCPA)
Instructions
- Select appropriate RUM platform for requirements
- Define key metrics to track (Core Web Vitals, custom events)
- Implement tracking code in application frontend
- Configure data sampling and privacy settings
- Set up dashboards for metric visualization
- Define alerts for performance degradation
Output
- RUM implementation code snippets
- Platform configuration documentation
- Custom event tracking examples
- Dashboard definitions for key metrics
- Privacy compliance checklist
Error Handling
If RUM implementation fails:
- Verify platform API credentials
- Check JavaScript bundle integration
- Validate metric collection permissions
- Review privacy consent configuration
- Ensure network connectivity for data transmission
Resources
- Core Web Vitals measurement guide
- RUM platform documentation
- Privacy compliance best practices
- Performance monitoring strategies
1---
2name: implementing-real-user-monitoring
3description: Implement Real User Monitoring (RUM) to capture actual user performance data including Core Web Vitals and page load times. Use when setting up user experience monitoring or tracking custom performance events. Trigger with phrases like "setup RUM", "track Core Web Vitals", or "monitor real user performance".
4version: 1.0.0
5allowed-tools: "Read, Write, Edit, Grep, Glob, Bash(npm:*), Bash(rum:*)"
6license: MIT
7author: Jeremy Longshore <jeremy@intentsolutions.io>
8compatible-with: claude-code, codex, openclaw
9metadata:
10 source: https://skillmd.com/skills/micsapp/implementing-real-user-monitoring
11---
12
13# Real User Monitoring
14
15Implement Real User Monitoring (RUM) to capture Core Web Vitals, page load times, and custom performance events using Google Analytics, Datadog RUM, or New Relic.
16
17## Overview
18
19This skill streamlines the process of setting up Real User Monitoring (RUM) for web applications. It guides you through the essential steps of choosing a platform, defining metrics, and implementing the tracking code to capture valuable user experience data.
20
21## How It Works
22
231. **Platform Selection**: Helps you consider available RUM platforms (e.g., Google Analytics, Datadog RUM, New Relic).
242. **Instrumentation Design**: Guides you in defining the key performance metrics to track, including Core Web Vitals and custom events.
253. **Tracking Code Implementation**: Assists in implementing the necessary JavaScript code to collect and transmit performance data.
26
27## When to Use This Skill
28
29This skill activates when you need to:
30- Implement Real User Monitoring on a website or web application.
31- Track Core Web Vitals (LCP, FID, CLS) to improve user experience.
32- Monitor page load times (FCP, TTI, TTFB) for performance optimization.
33
34## Examples
35
36### Example 1: Setting up RUM for a new website
37
38User request: "setup RUM for my new website"
39
40The skill will:
411. Guide the user through selecting a RUM platform.
422. Provide code snippets for implementing basic tracking.
43
44### Example 2: Tracking custom performance metrics
45
46User request: "I want to track how long it takes users to complete a purchase"
47
48The skill will:
491. Help define a custom performance metric for purchase completion time.
502. Generate JavaScript code to track the metric.
51
52## Best Practices
53
54- **Privacy Compliance**: Ensure compliance with privacy regulations (e.g., GDPR, CCPA) when collecting user data.
55- **Sampling**: Implement sampling to reduce data volume and impact on performance.
56- **Error Handling**: Implement robust error handling to prevent tracking code from breaking the website.
57
58## Integration
59
60This skill can be used in conjunction with other monitoring and analytics tools to provide a comprehensive view of application performance.
61
62## Prerequisites
63
64- Access to web application frontend code in ${CLAUDE_SKILL_DIR}/
65- RUM platform account (Google Analytics, Datadog, New Relic)
66- Understanding of Core Web Vitals metrics
67- Privacy compliance documentation (GDPR, CCPA)
68
69## Instructions
70
711. Select appropriate RUM platform for requirements
722. Define key metrics to track (Core Web Vitals, custom events)
733. Implement tracking code in application frontend
744. Configure data sampling and privacy settings
755. Set up dashboards for metric visualization
766. Define alerts for performance degradation
77
78## Output
79
80- RUM implementation code snippets
81- Platform configuration documentation
82- Custom event tracking examples
83- Dashboard definitions for key metrics
84- Privacy compliance checklist
85
86## Error Handling
87
88If RUM implementation fails:
89- Verify platform API credentials
90- Check JavaScript bundle integration
91- Validate metric collection permissions
92- Review privacy consent configuration
93- Ensure network connectivity for data transmission
94
95## Resources
96
97- Core Web Vitals measurement guide
98- RUM platform documentation
99- Privacy compliance best practices
100- Performance monitoring strategies