On this page
What this issue is
A redirect sends visitors from one URL to another. A proper redirect happens on the server: the server answers the request with a status code such as 301 (moved permanently) and a Location header. The browser or crawler never sees the old page.
A meta refresh or JavaScript redirect works differently. The server returns a normal 200 OK page. Then the page itself tells the browser to move on, using a <meta http-equiv="refresh"> tag or code like window.location.href = .... The old URL still looks like a real, live page.
<!-- Meta refresh -->
<meta http-equiv="refresh" content="0; url=https://example.com/new-page/">
<!-- JavaScript redirect -->
<script>
window.location.href = "https://example.com/new-page/";
</script>Why it costs you leads or sales
Google says it can follow both methods, but it treats a server-side redirect as the clearest signal for a permanent move. A page-level redirect has to be fetched, and for JavaScript it may need rendering first. That can delay the new URL being picked up, and other crawlers and AI tools that do not run JavaScript may never follow it.
There are visitor costs too. People see a blank or flashing page before the jump. Back-button behaviour can trap them in a loop. Ad and analytics tags on the old page may fire, or not fire, before the jump, and query strings such as gclid or UTMs can be dropped if the script does not copy them across. That muddies attribution and wastes ad spend.
- Ad or search clickVisitor lands on the old URL with UTMs or gclid
- Old page loads (200)Server does not redirect
- Script redirectsQuery string not copied
- New pageSource of the visit unknown
The old URL answers 200, so crawlers may index it, and tracking details can be lost in the jump.
Example: illustrative numbers only, showing how dropped parameters can reduce attributed visits.
How to check if your site has it
Test the old URL with curl
Run
curl -I https://example.com/old-page/. A real redirect shows301and alocation:header. If you see200 OK, the move is happening in the page, not the server.View the page source
Open the old URL, choose View Source, and search for
http-equiv="refresh",window.location,location.replaceandlocation.href.Crawl your site
Tools such as Screaming Frog have a meta refresh and JavaScript redirect filter. Google Search Console's URL Inspection tool shows the rendered page and the page Google picked as canonical.
Check landing pages used in ads
Open each ad destination URL in a private window. If the address bar changes after the page appears, a page-level redirect is likely.
# Good: server-side redirect
HTTP/2 301
location: https://example.com/new-page/
# Bad: page loads, then redirects in the browser
HTTP/2 200
content-type: text/htmlHow to fix it
The goal is the same everywhere: remove the meta refresh or script, and add a real 301 from the old URL to the new one. Keep the query string, and point straight to the final URL.
Remove the old redirect
Check the page's custom HTML, theme header and any plugin that injects a refresh tag or script, then delete it.
Add a 301
Use a redirect plugin (such as Redirection) or your SEO plugin's redirect manager. Choose type 301 and enter the old and new paths.
Remove theme redirects
In Online Store > Themes > Edit code, search templates for
window.locationor a refresh meta tag and remove it.Create a URL redirect
Go to Online Store > Navigation > URL Redirects, click Add URL redirect, and enter the old and new paths. Shopify uses a 301.
Remove custom code
Check page settings > Custom code and site-wide custom code for refresh tags or scripts.
Add a 301
Go to Site settings > Hosting > 301 redirects and add the old path and the new path.
Use the URL Redirect Manager
In your Wix dashboard open SEO tools > URL Redirect Manager, add the old and new URL. Remove any custom code that redirects.
Use URL Mappings
Go to Settings > Developer Tools > URL Mappings and add a line like
/old-page -> /new-page 301. Remove code injection that redirects.
Use a native redirect
Look in your funnel or website settings for a URL redirect option and use it for permanent moves. Remove any custom code that redirects. The menu name may vary by version.
Redirect on the server
Add a rule in your web server config (see the Apache and nginx snippets below), then remove the refresh tag or script from the page.
Redirect 301 /old-page/ https://example.com/new-page/location = /old-page/ {
return 301 https://example.com/new-page/$is_args$args;
}How to confirm it's fixed
curl -Ion the old URL returns 301 and a location header- The old URL no longer contains a refresh tag or redirect script in its source
- The redirect lands on the final URL in one hop, with no chain
- A test URL with
?utm_source=test&gclid=abcstill has those parameters after the redirect - Search Console URL Inspection shows the new URL as the Google-selected canonical over time
- Internal links and the sitemap point to the new URL
How to prevent it happening again
Agree one rule with your team: permanent moves are always set in the server or platform redirect tool, never in page code. Add a redirect check to your launch and migration checklists. Re-crawl after theme changes, new landing page builders and plugin updates, since these are common sources of injected scripts. Update internal links and the sitemap so they point at the new URL directly.
How FunnelGuard handles this
FunnelGuard does not check for meta refresh or JavaScript redirects yet. It is a possible future check. Today it runs your real customer journeys, such as lead forms and checkouts, on a schedule and checks each step and the tracking hits sent to platforms like GA4, Google Ads and Meta. If a page-level redirect breaks a journey or stops a tracking hit from firing, that failure can show up in those journey checks, but FunnelGuard does not identify the redirect type as the cause.
To watch for this issue, run a crawler such as Screaming Frog after each release and filter for meta refresh and JavaScript redirects. Also spot-check your top ad landing pages with curl -I, and review the Pages and Page indexing reports in Google Search Console. A free FunnelGuard account covers 1 site and 2 journeys with daily checks if you want to monitor the journeys behind those pages.
Questions people ask
Is a meta refresh redirect bad for SEO?
It is weaker than a 301. Google can follow a meta refresh, especially an instant one, but a server-side 301 is the clearest signal for a permanent move. Other crawlers may not handle it as well, so use a 301 where you can.
Does Google follow JavaScript redirects?
Yes, Google can follow them, but only after it renders the page, which can delay processing. Crawlers and AI tools that do not run JavaScript may not follow them at all. A server-side 301 avoids this risk.
How do I replace a meta refresh with a 301 redirect?
Remove the <meta http-equiv="refresh"> tag from the old page. Then add a 301 in your server config, CMS or platform redirect manager that points the old URL to the new one. Test it with curl -I to confirm a 301 status.
How can I tell if a redirect is a 301 or a JavaScript redirect?
Run curl -I on the old URL. A 301 status with a location header means a server redirect. A 200 status means the page loaded and any move is happening in the page, through a refresh tag or script.
Do JavaScript redirects drop UTM parameters and gclid?
They can. If the script sets a new URL without copying the query string, UTMs and gclid are lost. A server-side 301 can keep them when you pass the query string through, as in the nginx example above.
Does FunnelGuard detect meta refresh or JavaScript redirects?
No. FunnelGuard does not check for this yet, though it is a possible future check. You can find these redirects with a crawler like Screaming Frog, curl, or Google Search Console.
Is it ever okay to use a JavaScript redirect?
Yes, for behaviour tied to user actions, such as sending someone after login or form submission. For permanent URL moves, use a server-side 301.
Related issues
- SEO-085302 temporary redirects used for permanent movesFix guide
- SEO-087Redirects drop query strings (UTMs, gclid)Fix guide
- SEO-081Redirect chains of 3+ hopsFix guide
- SEO-084Redirect ends on the wrong page (home instead of product)Fix guide
- SEO-089Internal links point to redirecting URLsFix guide
- SEO-090Sitemap lists redirecting URLsFix guide