Short answer
Before you touch redirects, test every form end to end, copy every DNS record to the new DNS host if that host changes, and move the tags and consent banner with the site. Then send each old URL to its closest new page with a server-side 301 redirect and keep the redirects for at least a year, as Google's site move guide advises. Test it all again on launch day, then compare weekly leads in your CRM with the four weeks before the move.
On this page
- What breaks when you migrate a website?
- Before you start: list what the old site does
- How do you keep website forms working after a migration?
- How do you migrate a website without losing email?
- Tracking, consent and the links you control
- Redirects and the search side
- Launch day and the first four weeks
- Frequently asked questions
A website migration is any change to where your site lives or how its page addresses work: a new platform, new hosting, a new domain, or a redesign that renames pages. A move can stop forms from reaching the inbox or the CRM, bounce company email, and cut the link between ad clicks and leads, all while the new site looks fine. This website migration checklist covers those first.
For search, Google's guide to site moves sets the rules when page addresses change: map every old URL to a new one and use permanent redirects. Keep them "for as long as possible, generally at least 1 year," the guide says. A hosting move that keeps every address needs no redirects.
What breaks when you migrate a website?
Most of what breaks sits outside search, so test each row before and after launch.
| What breaks | What you notice | What to check |
|---|---|---|
| Form emails | Notifications or autoresponders stop arriving, or land in spam | Mail the new platform sends as your domain without SPF or DKIM. Gmail has required one of them for mail to personal Gmail accounts since February 1, 2024 |
| CRM hand-off | Leads reach the CRM without a source, or not at all | The CRM's tracking code missing from new pages. HubSpot: "Non-HubSpot form submissions will not be captured without the tracking code." |
| Company email | Messages to your domain bounce | DNS records left behind at the old DNS host |
| Ad conversions | Google Ads reports fewer leads | Redirects that drop the gclid, after which "the user's click won't be associated with any future conversions" |
| The ads themselves | Ads are disapproved | Final URLs that redirect to a different domain, a destination mismatch under Google Ads policy |
| Search traffic | Old addresses show "page not found," or pages drop out of Google | Missing redirects, or a noindex rule or robots.txt block left over from the build |
Before you start: list what the old site does
List everything the current site does before anyone builds the new one. A spreadsheet with a tab per list becomes your launch-day test plan.
- Pages and files. Export every URL in your sitemap, plus landing pages from GA4 and top pages from Search Console. Add hosted files such as PDFs, which the site move guide says to transfer too. Record each page's title and meta description, and save a list of the sites that link to you.
- Forms. For each form, note the fields (including hidden gclid or UTM fields), where submissions go and what counts as the conversion, such as a thank-you page.
- Tags and scripts. GA4, Google Tag Manager, Google Ads, the Meta pixel, the LinkedIn Insight Tag, the HubSpot tracking code, call tracking numbers, chat, booking widgets and the consent banner. Export your Tag Manager container as a backup (Tag Manager's help shows how).
- DNS records. Export the full zone from your DNS host: MX records, TXT records for SPF, DMARC and site verifications, and the records that publish your DKIM keys.
- Logins. Note who controls the domain registrar, DNS host, hosting, website platform, Search Console, GA4, Tag Manager and each ad account. Move admin access into business accounts before work starts.
- Data that won't move. Export form submission history, files and customer accounts from the old platform before you cancel it.
- A baseline. Record four weeks of leads by source from the CRM, organic clicks from Search Console and lead events from GA4, in a weekly format such as our marketing report template. For before-and-after comparisons in a GA4 exploration, set data retention to 14 months now. The setting "only affects explorations and funnel reports," so standard reports are safe either way.
How do you keep website forms working after a migration?
Test every form end to end, first on the staging site and again within an hour of launch. A thank-you message proves the form submitted, and nothing more.
- Submit each form with a name you'll recognize, such as "Migration test 1".
- Check that the notification reached every inbox on the list, outside spam, with the visitor's address as the reply-to. Look for the autoresponder in a personal Gmail address too.
- When the new platform sends mail as your domain, turn on its DKIM setting, or add it to your existing SPF record rather than a second one, which the SPF standard doesn't permit. Unauthenticated messages "might be marked as spam or rejected with a 5.7.26 error," according to Gmail's sender guidelines.
- Check the CRM. The record should exist, with an owner and a source. Test any booking or payment step that follows the form.
- Open the site through Tag Assistant, which turns on the debug mode GA4's DebugView needs. Submit the form, then confirm the lead event in DebugView and the conversion tag in Tag Assistant. The test won't show as a Google Ads conversion, since Google Ads measures actions taken "after interacting with your Google Ads."
- Test the click ID. Add
?gclid=TeSter-123to a landing page address, the test value from the auto-tagging help page. Follow any redirect, submit the form, and confirm the value reached the hidden field and the CRM. Our guide to enhanced conversions for leads explains what that field does. - Label the test records or delete them, so they don't count as leads.
After a domain change, add the new domain to any tool that only runs on listed domains, such as form spam protection and booking widgets.
How do you migrate a website without losing email?
Copy every DNS record to the new DNS host before you switch, then change only the records the website uses. Email doesn't live on your website, but its records often sit with the company that hosts the site.
MX records tell other mail servers where to deliver your email; SPF, DKIM and DMARC show that mail from your domain is genuine. Once the nameservers point to a new DNS host, only its records count. Google's Workspace help says you "must copy all DNS records for your domain to stay fully functional."
- A week ahead, lower the TTL on the records you'll change. TTL, or time to live, is how long other servers may cache a record. Google's hosting move guide suggests lowering it to "a few hours" at least a week before the move.
- Re-create every record from your zone export at the new DNS host before you switch, including verification records. Microsoft's DNS guide shows how to add the records Microsoft 365 email needs.
- If DNSSEC is on, remove the DS record at your registrar and wait out its TTL before you change nameservers. Cloudflare's DNSSEC guide says that wait is commonly 24 to 48 hours for most domain endings. Change sooner and "validating resolvers will return SERVFAIL," so the site and email stop resolving for anyone whose DNS provider checks DNSSEC. Turn it on again at the new host.
- Change only what the website needs, usually the records for the bare domain and for www. Leave MX records alone unless you're changing email providers too.
- Switch on a quiet day. Records can take "up to 24 hours" to update after a change of DNS host, according to Google's Workspace help.
- Afterward, send email to and from an outside account, and submit a form again.
Tracking, consent and the links you control
Install the same GA4 tag and Tag Manager container on the new site, so history stays in one property. Then check what depends on page details.
- Triggers tied to pages. A Tag Manager trigger or Google Ads conversion that fires on a thank-you page address, or on a form's ID, stops when either one changes.
- Ad landing pages. Pages built only for ads need the tags too: "for Google Ads tracking, the tracking code must be placed on every landing page."
- CRM code and ad pixels. HubSpot's instructions put its tracking code on "each page of your site." Move the Meta pixel and the LinkedIn Insight Tag the same way, then test them. Our Meta Conversions API guide covers Meta's test tools.
- Consent banner. Where the old site asked for cookie consent, move the same banner and settings. In the basic setup of Google's consent mode, "Google tags are completely blocked from firing" for visitors who don't consent, so test both answers.
- Links outside the site. Update the website and booking links on your Google Business Profile, which Google reviews before they go live, plus ad final URLs, sitelinks, social profiles, email signatures and directory listings. Edit ad URLs directly rather than relying on redirects to a new domain.
Redirects and the search side
Send every old address to its closest new page with a server-side permanent redirect, and carry its content, title and description across. These steps follow Google's site move guide and redirect documentation.
- Map each old URL from your inventory to one new page. The guide says: "Don't redirect many old URLs to one irrelevant single URL destination, such as the home page of the new site." Old pages you're dropping should return a 404 or 410 instead. The AI in your Google Workspace or Microsoft 365 can draft the map from both lists, with each page's title, and a person then checks every row.
- Redirect straight to the final page with a 301 or 308 on the server. The guide advises "redirecting to the final destination directly," which matters when an earlier redesign left redirects behind. Treat JavaScript redirects as a last resort, because "Google might never see it if rendering of the content failed."
- Point each new page at itself. The guide asks for a canonical tag on every new page that names its own new address.
- Move everything at once. For small and medium sites, the guide recommends "moving all URLs on your site simultaneously instead of moving one section at a time."
- Update links. Point menus and in-text links at the new addresses and submit the new sitemap in Search Console. Then ask the sites that send you the most visitors to update their links.
- Remove the build-time blocks. Take off any noindex rule or robots.txt block that hid the new site during the build. One left on tells Google to "drop that page entirely from Google Search results," and it can sit in the page code or an HTTP header. Check both with a crawler, a tool that requests each address and reports what comes back, and read the new robots.txt file.
- Changing domain? File the move in Search Console's Change of Address tool. You must own both properties and redirect the old homepage to the new one with a 301. The tool isn't for switching to HTTPS, between www and non-www, or for hosting moves that keep the same addresses.
- Keep the redirects for at least a year, as the site move guide says, or indefinitely for visitors. The Change of Address help sets a floor of "at least 180 days." After a domain change, keep the old domain registered and renewing automatically in a registrar account the business controls.
Launch day and the first four weeks
- The week before. Lower the TTLs, start the DNSSEC wait if it applies, freeze content changes on the old site, and back it up. Agree what would make you switch back, such as any form failing its test.
- Launch. Switch DNS. Make sure http and https, with and without www, all end on one https address. Run the old URL list through the crawler: each address should return a 301 or 308 straight to the right page, or a 404 or 410 if you dropped it. Repeat each form test with a test gclid.
- The same day. Submit the sitemap, file the Change of Address if the domain changed, update the Business Profile and ad URLs, and send email both ways.
- The old host. Keep it running until traffic to it "reaches zero," as the hosting move guide puts it, and longer if it serves your redirects. Before you cancel, check whether it also runs your email, DNS or domain registration, and move those first.
- Weeks one to four. Each week, open Search Console's Page indexing report, in the old domain's property after a domain change. Any moved page it lists as "Not found (404)" needs a redirect. Search can take "a few weeks for most pages to move" on a small or medium site, so compare weekly Search Console clicks with your baseline, not daily ones. If form or ad leads drop in the first week, assume a form or tag broke and rerun the form tests.
To hand the move over, Optimitor's new website service moves sites from Webflow, WordPress or Wix, up to 30 pages plus the blog, in four to six weeks. Old page addresses are redirected, lead tracking is included, and the price is fixed in your proposal.
Frequently asked questions
How long does a website migration take?
On top of the build, plan for two fixed waits: at least a week between lowering the DNS TTLs and the switch, and four weeks of lead and search checks after launch. Google says most pages on a small to medium-sized site can take a few weeks to move in search, and larger sites take longer. The build depends on your pages, forms and integrations.
Does changing or transferring your domain affect SEO?
Changing to a new domain does, for a while. Google's guide says visibility "may fluctuate temporarily during the move" and that rankings "will settle down over time." Use 301 redirects and the Change of Address tool, and keep the redirects a year or more. A registrar transfer of the same domain changes no page address. Its risk is DNS: if the old registrar also hosts your DNS, move the records and switch nameservers first, following the email steps above.
What is an SEO migration?
It's the search side of a website migration: making sure Google, and anyone following an old link, reaches the right new page. That means a URL map, server-side permanent redirects, updated links and sitemaps, and watching Search Console after launch.
Is a website redesign a migration?
It is when the platform, the host or any page address changes. A redesign that keeps every URL on the same platform needs fewer checks, though forms and tags still need testing wherever templates change. If any URL changes, work through the whole list, starting with the inventory.
Get a website your team can change itself.
We build or move your website to fast pages your team can update without a developer, with previews, one-step undo and lead tracking included. Four to six weeks, at a fixed price.
New website