Skip to content

Expected state rules

PRO

Change alerts find only pages that change. But a page can be incorrect from the start. With an expected state rule, you tell SEO Sentry how a page must look. At each check, SEO Sentry compares the page with the rule.

Examples:

  • The homepage must stay indexable and return HTTP 200.
  • All product pages must contain Product schema.
  • All pages in a group must have a canonical URL that is the same as the page URL.
  1. Go to SEO Sentry > Settings > Expected state.
  2. Click Add rule.
  3. In Name, type a name. For example: “Homepage stays indexable”.
  4. In Applies to, select One page, A page group or Every monitored page.
  5. Select the page or the page group.
  6. Set the checks:
    • Indexing: Must be indexable or Must stay noindex.
    • Links: Must be followed or Must stay nofollow.
    • Also check: HTTP 200 (no error, no redirect) and Canonical URL is the same as the page URL.
    • Must contain schema: type a schema type and press Enter. For example: Organization.
  7. In Severity if a page fails, select Critical or Warning.
  8. Click Test with the current pages.
  9. Read the result. For example: All 1 pages pass this rule now.
  10. Click Save rule.
The New expected state rule dialog with a test result
  • SEO Sentry records the change Expected state rule failed.
  • The change shows what the rule expects and what is incorrect. For example: “must be indexable, but it is noindex”.
  • SEO Sentry sends 1 alert. It does not send the same alert again while the problem continues.
  • When you correct the page, the next check resolves the change automatically.
The Expected state tab with 1 rule