Synthetic monitoring

On this page 8

Synthetic monitoring is the practice of measuring a website or web application with scripted, automated visits that run on a schedule from controlled locations, devices and network profiles. In web performance, it provides a repeatable laboratory baseline: because every test uses the same conditions, a change in the result usually reflects a change in the site rather than a change in the audience.

The method is also called active monitoring or proactive testing, since the measuring agent generates its own traffic instead of waiting for visitors. It complements real user monitoring, which records what actual visitors experience, and the two together form the core of a mature performance practice.

How synthetic monitoring generates measurements

A synthetic monitoring system works by sending a test agent to load a page or complete a user journey at fixed intervals and recording what happens. The agent is typically a real browser engine such as headless Chromium or a full desktop browser, running in a data center, a cloud region or a dedicated device lab.

Each run follows a defined script: open a URL, wait for specific elements, click, type, submit a form and verify that the expected content appears. The agent captures a waterfall of network requests, a filmstrip of rendering frames, browser timing events and any errors. Results are stored as a time series, so engineers can compare today with yesterday or with the release before.

Control over conditions is the defining feature. A test can emulate a mid-range phone on a throttled 4G connection, a fast desktop on fiber or a user in another continent. Throttling is applied either by the browser or, more realistically, at the network packet level, which reproduces latency and bandwidth limits more faithfully.

The table below lists the main configuration parameters and how each one influences the results.

ParameterTypical valuesWhat it affects
Test locationCloud regions, ISP backbones, officesLatency, DNS and CDN edge selection
Device profileDesktop, mid-range Android, low-end phoneCPU-bound work such as JavaScript execution
Connection profileCable, 4G, slow 3GDownload time and round-trip delay
Test frequencyEvery 1 to 60 minutesDetection speed and monitoring cost
Cache stateFirst view or repeat viewEffect of browser caching and preload hints
Run count1 to 9 runs, median reportedStatistical stability of each data point
Core test configuration parameters

Types of synthetic checks

Synthetic monitoring covers a range of check types, from a simple availability ping to a full multistep browser journey. Teams usually combine several types, because each one answers a different question at a different cost.

Check typeWhat it doesBest suited for
Uptime checkRequests a URL and checks the HTTP statusDetecting outages within minutes
API checkCalls an endpoint and validates the responseBack-end availability and latency
Page load testLoads one page in a real browserRendering metrics and waterfall analysis
Transaction scriptRuns a multistep user journeyLogin, search, cart and checkout flows
Lab audit in CIRuns tests on each build before releaseCatching regressions before deployment
Common synthetic check types and their purpose

Transaction scripts are the most valuable and the most fragile. They verify that a business-critical path still works end to end, but they break when selectors, consent banners or login flows change, so they need ongoing maintenance like any other test code.

Metrics captured in a synthetic test

A browser-based synthetic test records the full set of lab performance metrics, many of which belong to the same Topic. Typical outputs include TTFB, FCP, LCP, CLS, Speed Index and Total Blocking Time, together with request counts, transferred bytes and the list of render-blocking resources.

One important limit applies to interaction metrics. INP measures how quickly a page responds to real user input across a whole visit, and a script that clicks a few predefined elements cannot reproduce that distribution. For this reason, lab tools rely on Total Blocking Time as a proxy for responsiveness, and the field value of INP must come from real user data.

Synthetic results are also used to enforce a performance budget. A pipeline can fail a build when, for example, total JavaScript exceeds an agreed size or LCP on the reference device rises above a threshold.

Synthetic monitoring compared with real user monitoring

Synthetic monitoring and real user monitoring measure the same site from opposite directions: one controls the conditions, the other observes reality. The comparison below shows why neither replaces the other.

AspectSynthetic monitoringReal user monitoring
Traffic sourceScripted agentsActual visitors
ConditionsFixed and repeatableVaried and uncontrolled
Works without trafficYes, including staging sitesNo, needs real visits
Diagnostic depthFull waterfall, filmstrip, tracesAggregated timings, limited detail
RepresentativenessOnly the tested scenariosThe real audience distribution
Core Web Vitals assessmentLab estimates onlyField data used for the official assessment
Synthetic monitoring versus real user monitoring

The practical rule is simple: use field data to find out what is wrong for real people and use synthetic tests to explain why and to verify the fix. Synthetic numbers often look better or worse than field numbers, because the chosen device and network rarely match the median visitor.

Designing a reliable synthetic monitoring setup

A good setup starts by mirroring the real audience: choose locations, devices and connection profiles that match the largest visitor segments shown in analytics or field data. Testing only from a fast server near the origin produces flattering numbers that nobody actually experiences.

Variance management is the second priority. Single runs fluctuate because of network jitter, third-party scripts and server load, so mature setups run several iterations and report the median, keep test agents on stable hardware and alert only after two or more consecutive failures from different locations.

SituationRecommended choiceReason
Mostly mobile audienceMid-range phone on throttled 4GExposes CPU and network bottlenecks
Global customer baseTests from three or more regionsReveals CDN and DNS differences
Frequent releasesLab tests in the CI pipelineBlocks regressions before production
Noisy resultsMedian of five or more runsReduces random variance
Critical checkout flowTransaction script every 5 minutesDetects broken journeys quickly
Configuration decisions and recommended choices

Limitations and common mistakes

The main limitation of synthetic monitoring is that it measures only what it is told to measure. Pages, personalization paths, logged-in states and third-party variants that are not scripted remain invisible, so a green dashboard can coexist with a poor experience for real users.

  • Unrealistic test conditions: fast desktop profiles hide problems that mid-range phones expose.
  • Polluting analytics: synthetic traffic should be filtered or tagged so it does not distort visitor statistics or advertising data.
  • Alert fatigue: alerting on a single slow run trains teams to ignore notifications.
  • Stale scripts: unmaintained journeys produce false failures after every interface change.
  • Cached results: testing only repeat views overstates the speed seen by first-time visitors.

A non-technical view

Synthetic monitoring is like a mystery shopper for a website. A robot visits the site every few minutes. It follows the same steps each time. It notes how long everything took and whether anything broke.

The robot always uses the same phone and the same connection. So any change in its notes points to a change in the website itself. The key takeaway is that it warns a team early, even at night. It only checks the paths it was taught to follow, though.

A concrete example

An online ticket retailer runs a checkout transaction script every five minutes from three regions, using a mid-range Android profile on a throttled 4G connection. The script searches for an event, selects two seats, enters test payment details in a sandbox and confirms that the confirmation page appears.

One evening, LCP on the event page jumps from about 2.4 seconds to 5.1 seconds in all three regions after a release. The waterfall shows a new, uncompressed hero image of 3 MB and a render-blocking font file. The team reverts the change within 20 minutes, and the regression never reaches the field data used for the site’s Core Web Vitals assessment.