Tutorial · migration-hosting · Published 2026-08-16 · 3 min read
Keeping analytics and monitoring working during a migration
Keep analytics and monitoring working through a site migration so you do not lose tracking or alerting during cutover.
Analytics and monitoring are the instruments you use to confirm a migration worked, but they are also the components that silently stop reporting during the move if their configuration keys to the wrong domain, host, or tag ID. A migration that appears successful in logs but loses tracking is a data gap you cannot recover.
What breaks tracking
Analytics and uptime tooling break at a migration because they are bound to identifiers that change:
- Domains and cookieless contexts: if the site moves to a new domain, analytics keyed to the old host stops firing, and Search Console/GA4 properties must cover the new host (see the GA4 link guide).
- Tag IDs and container settings: an analytics tag or tag manager container tied to the old environment does not transfer its history; verifying the same IDs load on the new pages is the test.
- Referrer and cookie domains: cookie-based configuration and referrer exclusions are often host-specific and break when the hostname changes.
- Monitoring endpoints: uptime and error monitors (see the uptime guide) pointed at the old IP or URL will alert falsely or miss the live site.
Analytics continuity
- Check the shared scripts load on the new site: open the deployed page and confirm the analytics, tag manager, and consent-script tags appear in the network requests.
- Re-map the property if the domain changed, and record the old-versus-new mapping so history is preserved rather than reset.
- Re-apply exclusions and internal-traffic filters on the new hostname so your own visits do not pollute the numbers.
- Send a test event after cutover and confirm it appears in the real-time view, not just in a staging environment.
Because the migration often moves the site and the DNS at once, run the host migration checklist in parallel so the analytics step is one explicit item rather than an afterthought.
Monitoring after cutover
- Update uptime monitors to the new URL and origin before you cut over, so the tool does not flood you with false alerts at the moment the DNS changes.
- Confirm error-monitoring and server log forwarders terminate at the new host, not the old one.
- Set a monitoring window across cutover: alert on the new site within the first minutes and treat silence as a red flag, not success. The uptime monitoring guide covers the alerting design.
Prevention
- Make analytics and monitoring explicit cutover checklist items, with a documented before-and-after set of identifiers.
- Test the new tags on a staging or scratch URL before the live DNS moves.
- Keep a record of the old host IDs so you can reconcile any lost data and confirm continuity after the move.
Tying the monitoring back to definition-of-done, the staging-to-live guide shows how a staged promotion normally ends with exactly this verification pass and the migration checklist keeps the operational sequence straight.