Documentation · updated

How we check a migration: parity checks

A parity check loads each old page and its new page and compares them. It answers four questions a manager cares about: does the new page load, do old links still arrive, did the search engine details survive, and is the content still there. A full run adds accessibility, a visual comparison, speed and analytics in a real browser.

Who does what

StepAutomaticChecked by a personHand work
Pair the pagesFrom the two site addresses and a list of paths, or a list of old and new addresses.You confirm the list covers every template.A redirect map, when addresses change.
CompareEach check gives a pass, a warning or a failure per page, with the reason in plain words.A person reads every warning and failure.Nothing.
Fix and re-runThe same run can be repeated after each fix.An engineer decides which differences are intended.The fixes.

In plain words

After a migration, the question is not whether the new site works. It is whether anything a visitor or a search engine relied on has gone missing. The parity check answers that page by page, with the old site as the yardstick. A difference is not always a fault, so a person reads the result and decides.

The light checks: no browser needed

CheckWhat is comparedFails whenWarns when
AddressThe new page itself.It does not load, answers with an error, or loops.It redirects before it loads, or the old page itself is broken so there is nothing to compare with.
RedirectWhat an old link or bookmark gets on the new site.The old path is not found, ends in an error, or loops.It takes more than one hop, lands somewhere other than the mapped page, or serves a second copy of the page instead of redirecting.
SEOTitle, meta description, canonical address, hreflang links, robots instruction, main heading, structured data and Open Graph tags.The title, description, canonical or main heading is missing where the old page had one, the canonical points at the old host, or the new page tells search engines not to index it.A title, description or heading changed, structured data or Open Graph tags were lost, or there is more than one main heading.
ContentThe main text, the images and the links.The text is less than 70 percent similar, more than two images are missing, or more than a quarter of the links are missing.The text is less than 90 percent similar, images or links are fewer, or the new page has almost no text until JavaScript runs.

Text is compared by the words it uses, not by their order, so a page that was laid out differently still matches. Links inside the site are compared by path, through the redirect map when there is one.

The full checks

CheckWhat is compared
AccessibilityBasic counts on each page: a missing page language, images without alternative text, skipped heading levels, links with no name, a missing main heading. It fails when the new page is worse than the old one.
VisualA screenshot of the top of each page at phone width and at desktop width, old against new, after lazy images have loaded and animations are frozen.
PerformanceLargest Contentful Paint, layout shift and bytes transferred, old against new.
AnalyticsRequests to analytics and tag endpoints, and what each page pushes to its data layer, old against new.

Visual, performance and analytics need a real browser, which loads both pages at 390 by 844 and at 1366 by 900. These are basic accessibility counts, not an accessibility audit.

What you can run yourself

RunPagesChecks
On the site, no account10 page pairsAddress, redirect, SEO, content.
On the site, free account50 page pairsAddress, redirect, SEO, content.
In an engagementThe whole list, through a command-line runAll eight checks.

If you list more pairs than your limit, the first ones are checked and the result says how many were left out. The result itself is never hidden.

How the check behaves on your sites

  • It fetches only the pages you list, plus each site's robots.txt, and obeys robots.txt.
  • It reads only the two sites you name. Every old address must be on the old site and every new address on the new site.
  • It names itself SurgeMigrateBot/1.0 and runs a few requests at a time.
  • Private and local network addresses are refused, also after a redirect and inside the browser.
  • Nothing is stored after the result is shown.

What a parity check cannot tell you

  • Whether a change was intended. A rewritten title shows as a warning; only your team knows it was on purpose.
  • Whether the design is right. The visual check shows where pixels differ, not which version is better.
  • Anything behind a login, and pages robots.txt closes to the bot.
  • Whether forms submit, search finds things or a checkout completes. Those need functional tests.
  • Rankings. The check covers what search engines read on the page, not how they will rank it.

Questions

The new site is not live yet. Can I still check it?

Yes, if its preview address is reachable on the public internet. Give the preview as the new site. A canonical address that points at the production host can be allowed for that run in an engagement.

Why is a changed title only a warning?

Because many titles are changed on purpose during a migration. A missing title is a failure; a different one is for a person to confirm.

How many pages should we check?

At least a few of every template, every page that earns traffic, and every old address that changes. The free run is enough to see how the report reads; a whole site goes through an engagement.

Where this comes from

Each statement on this page describes code that exists or repeats a page of this site:

  • The checks (src/parity/checks.ts) and the run (src/parity/run.ts)
  • The browser checks (src/parity/browser.ts) and the fetcher (src/parity/fetch.ts)
  • Limits per tier (src/parity/tier.ts, src/eds/limits.ts)
  • The parity check page

Surge Migrate is not affiliated with Adobe or with any other vendor named in this documentation. No prices are listed here: see the pricing page and the self-serve prices page, or ask.

Next: The free tools around a move: what each reads, keeps and allows →