Glossary · Types of monitoring

What is keyword monitoring?

Keyword monitoring checks that a web page’s response contains, or does not contain, a specific piece of text, so a page that loads but shows the wrong content counts as a failure.

How it works and why it matters

A status code alone doesn’t prove a page works. Error pages, empty product lists, maintenance notices and a hacked page can all be served with HTTP 200. A keyword such as “Add to cart” that only appears when the page works, or an error text that must not appear, turns those into failures.

Pick text that is stable and specific: a button label, a product name, a line in the footer rendered by the application. Avoid text that changes with A/B tests, prices or language.

Keyword checks read the HTML the server returns. Text added later by JavaScript in the browser isn’t in it; check that with a browser-based synthetic check instead.

How Uptimecheck helps

Uptimecheck HTTP monitors can require a keyword or require that it is absent, in the first 2 MB of the response, and the match is exact, including upper and lower case. For APIs, JSON checks such as $.status equals ok work the same way, and flows that run in a real browser can check text that JavaScript renders.

See Uptime monitoring

14-day free trial · No credit card required

Read more in the guides

Guides 7 min read

How to Build a Health Check Endpoint (and Monitor It)

A health check endpoint tells monitors and load balancers whether your app can serve requests. What to check, how to keep it fast and safe, code for Laravel, Express and Flask, and how to monitor it.

Read

Questions

Is keyword monitoring case-sensitive?

It depends on the tool. In Uptimecheck it is: “Add to cart” doesn’t match “add to cart”.

Can keyword monitoring detect a hacked page?

Partly. A “must not contain” check on words an attacker would add, or a “must contain” check on your own footer text, catches a page that was replaced.

Why does my keyword check fail when I can see the text?

The text is probably added by JavaScript after the page loads, or differs in case, spacing or encoding in the HTML. View the page source to see what the server returns.

Downtime is obsolete.

Set up your first monitor in under a minute, or look around the live demo first.

14-day free trial · No credit card required