Cloudflare is a strong home for campaign microsites: fast worldwide, cheap to run, and built around Git so every change can be previewed and rolled back. Here is the setup we use.
1. Build the site as a static site
Astro is a good fit for campaign pages because it outputs plain HTML and only loads JavaScript where it is needed. If the microsite will live under a path on another domain, set Astro's site and base options so links and assets resolve correctly.
2. Put it in GitHub
Keep the project in a GitHub repository. Each change becomes a commit, and each round of client feedback can live on its own branch.
3. Connect the repository to Cloudflare
Connect the repo in the Cloudflare dashboard so every push builds and deploys automatically. Cloudflare is steering new projects toward Workers with static assets, though Pages still works well for simple static sites. Either way you get preview URLs for review before anything goes live.
4. Choose how it appears on the domain
- Subdomain: point something like campaign.brand.com at the deployment with a DNS record.
- Path on the main site: if the main domain runs through Cloudflare, a Worker can serve /campaign/ from the microsite while the rest of the domain stays on WordPress or any other platform. See how to host a campaign page on a WordPress site.
5. Add tracking and test
Add the brand's and publisher's analytics and pixels, test on real mobile devices, and check every link before launch.
Why Cloudflare suits campaigns
- Preview links make client review simple.
- Rollback is instant if something goes wrong mid-flight.
- Static pages served from the edge stay fast under traffic spikes from social and newsletter pushes.