Preview Deployment
A preview deployment is a temporary, live copy of a website built automatically from one proposed change, with its own URL so people can review it before it goes to production.
Also called: preview URL, preview deployment, deploy preview, preview environment, preview builds
A preview deployment is a temporary, live copy of a website built from one proposed change. When someone edits a page and opens a change request, the hosting platform builds that version and gives it its own URL. Marketers, designers and founders can click through the real page before anything reaches production.
How it works
Preview deployments sit inside a CI/CD workflow. The steps look like this:
- Change: someone edits code or content on a branch in version control.
- Build: the hosting platform notices the branch, installs dependencies and builds the site.
- Deploy: the build goes live at a unique URL, often with the branch name or a short hash in it.
- Review: the link gets posted on the change request. Reviewers check copy, layout, forms and tracking on real devices.
- Merge: once approved, the change merges into the main branch, which triggers the production deploy.
- Cleanup: the preview stays available for reference or expires, depending on the platform.
Each preview can have its own settings through environment variables. That matters for GTM. A preview should send form submissions to a test CRM pipeline or a sandbox, not create real leads. Analytics should either be off or tagged as preview traffic.
Most platforms protect previews by default, with a password, a login or a noindex header. Even so, check that search engines can't reach them. Open one preview in a private window and confirm what a stranger would see.
Example
A startup is launching a new pricing page (all numbers hypothetical). Without previews, the developer pushes to a single staging site. Marketing reviews it there while two other changes are also on staging. A broken nav from an unrelated change gets blamed on the pricing page. Review takes four days of back and forth.
With previews, the pricing page change gets its own URL. The team checks it on phone and desktop. Sales leaders leave comments directly on the change. The form on the preview posts to a test pipeline, so the team can confirm hidden fields and UTM capture work without polluting real data. A second preview fixes two copy edits. The page ships in a day and a half, and the production deploy holds no surprises.
| Shared staging | Per-change preview | |
|---|---|---|
| Changes visible at once | Several | One |
| Review rounds | 4 | 2 |
| Days to ship | 4 | 1.5 |
By company size
Small business: on a site builder you get a similar effect with draft pages or a "preview" button. If your site runs on a modern hosting platform, previews come almost free. Use them for any change to your booking or checkout pages.
Mid-market: previews become the review standard for every page, landing page and experiment. Marketing gets a link, not a screenshot. Set up a test CRM pipeline so preview forms never create real leads.
Enterprise: previews feed formal review with accessibility checks, legal sign-off on claims, automated tests and performance budgets. Access is restricted to company logins. A staging environment still holds the release candidate before big launches.
Preview deployment vs staging environment
Staging is one shared place for testing a combined release. A preview is one isolated place per change. Previews make review faster and blame clearer. Staging catches problems that only appear when several changes meet.
Why it matters for GTM teams
Marketing sites change constantly, and screenshots hide broken forms, slow scripts and bad mobile layouts. We set up previews on every site we build, so every change gets a real link and a real review. We also wire previews to a sandbox for leads and keep them out of search. Combined with a CDN for production, this gives founders fast shipping without breaking the pages that drive pipeline.
Common mistakes
- Letting preview forms send real leads into the production CRM.
- Previews firing production analytics, which inflates traffic and conversion data.
- Preview URLs leaking into sitemaps, canonical tags or shared docs that get crawled.
- Reviewing only on desktop, when most problems show up on phones.
- Skipping previews for "small" changes, which are often the ones that break forms.
- Forgetting that preview environment variables can differ from production.
- Sharing preview links in ads, social posts or public docs, where they get crawled and outlive the change.
FAQ
What is the difference between a preview deployment and staging?
A staging environment is usually one long-lived copy of the site where many changes are tested together. A preview deployment is created for a single change and thrown away after it merges. Many teams use both: previews for reviewing each change and staging for final checks before a release.
Can Google index a preview deployment?
It can if the URL is public and gets linked or discovered. Most hosting platforms add protections or noindex headers to preview URLs by default, but you should confirm. Never let preview URLs appear in your sitemap or canonical tags.
Do preview deployments cost extra?
On many hosting platforms previews are included, with limits tied to build minutes or plan tier. Heavy sites with many previews per day can use a lot of build time. Check your plan's limits if your team opens many changes.