On this page
What this issue is
A rollback means putting the site back to the last version that worked. This issue happens when that option does not exist. The old theme was overwritten, the old build was deleted, the database changed with no backup, or the only copy lived on one person's laptop.
It is not the bad deploy itself. It is what turns a small mistake into a long outage. With a previous version, a broken form costs minutes. Without one, someone has to find the fault and fix it live while the funnel stays broken.
Why it costs you leads or sales
Every minute a broken landing page, form or checkout stays live, paid traffic keeps arriving and leaves without converting. If you cannot roll back, the time to recover grows from minutes to hours or days, and you pay for ads the whole time.
Example: illustrative recovery times for one broken form, with and without a restorable previous version.
10:00
A release goes live and overwrites the old files.
10:20
Someone notices the form or checkout is broken.
10:30
The team looks for the previous version and finds none.
13:00
The fault is traced and patched by hand on the live site.
13:30
The funnel works again, after hours of lost traffic.
How to check if your site has it
Ask one question: if the last change broke the site right now, how would you undo it, and how long would it take? If the answer is vague, you have this issue.
- You can name the last version that worked and where it is stored.
- Your host, theme or platform keeps earlier versions you can restore.
- A backup of files and database was taken before the last change.
- The backup is stored somewhere other than the server it protects.
- You have restored a backup at least once to prove it works.
- More than one person knows the rollback steps.
- Config values and environment variables are saved outside the deployed code.
How to fix it
The method depends on how your site is built. Pick your platform below, then follow the general steps.
Back up before every change
Use your host's snapshot feature or a backup plugin to save files and the database before updating plugins, themes or core.
Test on staging first
If your host offers a staging site, apply the update there, check forms and tracking, then push live.
Store backups off the server
Send copies to separate storage so a server problem does not take the backups with it.
Duplicate the theme before editing
In Online Store > Themes, open the theme's menu and choose Duplicate. Edit the copy, not the live theme.
Publish the copy when ready
If something breaks, publish the earlier theme again from the theme library.
Rename copies with the date
A name like 'Main 2025-03-01 before banner change' makes the right version easy to find.
Use site backups
In Site settings > Backups you can create a backup and restore earlier ones. Create one before big changes.
Restore from a backup
Pick the last good backup and restore it, then republish.
Tag every release in Git
Tag each deployed commit, for example
git tag release-2025-03-01, so you can redeploy it later.Keep several builds on the server
Deploy each release to its own folder and point a
currentsymlink at the live one. Do not delete older folders straight away.Make rollback one command
Switch the symlink back, or redeploy the previous tag through your CI/CD pipeline.
Make database changes reversible
Write a down migration for each change, and take a database dump before running migrations.
Publish with a version name
In Workspace, choose Submit and give each container version a clear name and description.
Roll back from Versions
Open the Versions tab, pick the last good version, then use Actions > Publish to make it live again.
# Deploy a new release
RELEASE=releases/$(date +%Y%m%d%H%M)
mkdir -p $RELEASE
cp -r build/* $RELEASE/
ln -sfn $(pwd)/$RELEASE current
# Roll back: point current at the previous release folder
ls -1 releases | tail -n 2
ln -sfn $(pwd)/releases/PREVIOUS_FOLDER current
# Keep the last 5 releases, remove older ones
ls -1dt releases/* | tail -n +6 | xargs rm -rfList what must be restorable
Files or theme, database, tag manager container, DNS, redirects and environment settings.
Take a snapshot before each release
Make it a required step in your release checklist, not an optional extra.
Keep a minimum number of versions
Hold at least the last three releases or backups, plus one older monthly copy.
Store copies in a second place
Use separate storage or a different account from the live site.
Write the rollback steps down
One page, in plain words, that anyone on the team can follow under pressure.
Rehearse it
Restore to a test copy and time it. Fix gaps before a real incident.
No rollback option
- Edits made directly on the live site
- Old files overwritten on deploy
- Backups missing, old or never tested
- Recovery means debugging live
Restorable releases
- Snapshot or duplicate taken before each change
- Last several versions kept and named
- Backups stored off the server and tested
- Recovery is one documented step
How to confirm it's fixed
Run a rollback drill
On staging or a copy, deploy a deliberately small change, then roll it back using your written steps.
Time it
Note how long it took and who needed to be involved. Aim for minutes, not hours.
Check the funnel after restore
Submit the form, load the checkout and confirm tracking tags fire on the restored version.
Check data
Confirm recent leads, orders and settings were not lost by restoring.
How to prevent it happening again
- Never edit the live site directly without a snapshot or duplicate.
- Automate backups on a schedule and before each release.
- Set retention so old versions are not deleted too soon.
- Keep a changelog of what changed, when and by whom.
- Avoid releasing right before or during peak ad hours.
- Review the rollback page every quarter and after any platform change.
How FunnelGuard handles this
This issue is outside what FunnelGuard checks. Whether a previous version exists is a matter of your backups, version control and deploy setup, and FunnelGuard does not inspect those.
The kind of tool that fits is a backup and release-management tool: your host's snapshots or backup service, Git with a CI/CD pipeline that keeps tagged builds, or your platform's built-in version history.
FunnelGuard is a separate, complementary tool. It runs your real customer journeys on a schedule, such as lead forms and checkouts, and checks tracking hits and whether test leads arrive. You can use it after a rollback to check that the restored funnel works end to end. A free plan covers 1 site and 2 journeys, and a free read-only website audit is also available.
| Need | Kind of tool |
|---|---|
| Keep and restore previous versions | Backups, version control, CI/CD, platform version history |
| Undo a bad container change | Tag manager version history |
| Re-run the funnel after a restore to see it works | Synthetic monitoring such as FunnelGuard |
Questions people ask
What do I do if a deploy broke my site and I have no backup?
First check for hidden copies: your host's automatic snapshots, platform version history, your Git repository, a CDN or browser cache, and the Wayback Machine for page content. If none exist, fix the fault directly on the live site as fast as you can, then set up backups so it does not happen again.
How do I roll back a Shopify theme?
Go to Online Store > Themes and find the earlier theme in the theme library. Open its menu and choose Publish. This only works if you duplicated the theme before editing, so make a copy before every change.
Can I restore a previous version of a Webflow site?
Yes, if a backup exists. In Site settings > Backups you can restore an earlier backup, then republish. Create a backup before large changes so a good one is always available.
How many previous versions should I keep?
Keep at least the last three releases or backups, plus an older monthly copy. This covers a bad release you notice a few days later. Store them somewhere other than the live server.
Why is my WordPress rollback not working?
Common causes are a backup that is incomplete, a database that changed after the backup, or files restored without the matching database. Restore both together to a staging copy first, then check forms and tracking before going live.
How do I roll back a Google Tag Manager change?
Open your container, go to the Versions tab, choose the last good version and use Actions > Publish. This makes that version live again without losing the later ones.
Does FunnelGuard help me roll back a deploy?
No. Rollback needs backups, version control or platform version history. FunnelGuard can run your funnel journeys after a rollback to check that forms, checkouts and tracking work again.
Related issues
- OPS-292Deploy broke landing page or formFix guide
- OPS-293Deploy removed tracking snippetFix guide
- OPS-299Environment variable missing after redeployFix guide
- OPS-302DB migration failed silentlyFix guide
- OPS-307Change made without changelog (no root-cause trace)Fix guide
- OPS-308Deploys during peak ad hoursFix guide