Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/agenciarse/agencia-rse-staging-guard/archive/refs/heads/main.zipPlugin page · Página en español · Resumen en español
Agencia RSE Staging Guard
A WordPress plugin for staging, development and local copies of a site. It keeps the copy out of search engines and stops the live site's analytics, ad tags, WooCommerce webhooks and pings, without changing a single saved setting. Email is left alone unless you ask: then it is dropped or redirected to one address.
Why
A staging copy cloned from the live site takes everything with it: the Google Tag Manager container, GA4, Google Ads conversions, the Meta pixel, WooCommerce webhooks and every email the site sends.
Those tags count even on a different domain. GA4 does not filter by hostname by default, and GTM fires its tags wherever the container loads. We saw it on the staging copy of a site we maintain: test visits went into the client's real GA4, and tests that reached the thank-you page could fire the Google Ads conversion.
Turning the tracking plugins off on the copy is not the answer: those changes live in the database, so they travel back to production when you push the copy live. Staging Guard does everything with filters at run time and saves nothing in other plugins' settings.
What it does
| Feature | Default | Details |
|---|---|---|
| Hide from search engines | On | noindex, nofollow on every page (WordPress core, Yoast SEO, Rank Math, SEOPress) and an X-Robots-Tag: noindex, nofollow header on every PHP response, including feeds, sitemaps, REST and AJAX. |
| Block analytics and ad tags | On | PixelYourSite, GTM4WP, Site Kit, MonsterInsights and Elementor Pro custom code. As a safety net, any ` |