Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Get the app button leads to a 404 or loop: how to fix it

APP-007High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Your site has a button or badge such as Get the app, Download on the App Store or Get it on Google Play. When someone taps it, they should land on your store listing. With this issue they land somewhere else: a 404 page, an endless chain of redirects that the browser gives up on, or a page that loads empty.

Why it costs you leads or sales

The app button is the last step before an install. Everything before it, the ad, the landing page and the scroll, has already been paid for. If the button dies, those visitors can't convert, and most won't come back to try again.

Where the install path breaks
  1. Ad clickVisitor arrives on landing page
  2. Tap Get the appButton link is followed
  3. Redirect hopSmart link or script sends to 404 or loops
  4. Store listingNever reached
  5. InstallLost

The visitor taps the button, but a bad hop stops them before the store.

Installs from 1,000 button tapsExample numbers
Installs from 1,000 button taps (example)Working link: 120 installs; Link to 404 or loop: 0 installs046921200Working linkLink to 404 or loopinstalls

Example: illustrative numbers only. A working link versus a link that dead-ends.

How to check if your site has it

Test the button the way a visitor would
  1. Tap it on a real phone

    Use an iPhone and an Android phone, on mobile data as well as Wi-Fi. Use a private tab so cached redirects don't hide the problem.

  2. Copy the button's URL

    Right-click the button on desktop and copy the link address, or inspect the element and read the href.

  3. Trace the redirects

    Run the command below with a phone user agent and read each Location header. Look for a 404, a repeated URL or more than a few hops.

  4. Check every placement

    Header, hero, footer, pop-ups, thank-you pages and emails often use different links.

Follow the redirect chain with an iPhone user agentbash
curl -sIL --max-redirs 10 -A "Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 Mobile/15E148" "https://example.com/get-the-app" | grep -iE "^(HTTP|location)"

How to fix it

First find which hop fails, then fix that hop. The usual causes are below.

Common causes and fixes
SymptomLikely causeFix
404 on your own domainPage or short link was deleted or renamedRestore it or update the button to the new URL
Loop between two URLsTwo redirect rules point at each other (for example http/https or www/non-www)Remove one rule or make the target final
404 on the storeWrong app ID or removed listingCopy the URL again from the store listing
Blank pageDevice-detection script fails or is blockedFix the script or use a plain store link
Works on one phone type onlyRule only handles one platformAdd the missing platform or use a smart link
Update the button link on your platform
  1. Edit the button

    Open the page in the block editor, select the button, and replace the link in the block settings with the working store or smart link.

  2. Check redirect plugins

    In your redirect plugin (for example Redirection or Rank Math Redirections) look for rules that match your app path and delete loops.

Device redirect with a safe fallbackjavascript
var ua = navigator.userAgent || '';
var url = 'https://apps.apple.com/app/idYOUR_APP_ID';
if (/android/i.test(ua)) {
  url = 'https://play.google.com/store/apps/details?id=YOUR.PACKAGE.NAME';
}
window.location.replace(url);

How to confirm it's fixed

Confirmation checks
  • The button opens the store listing on an iPhone
  • The button opens the store listing on an Android phone
  • The curl trace ends on a 200 store page with no repeated URLs
  • Every placement of the button (header, hero, footer, emails) was tested
  • Desktop visitors see a sensible result, such as a store page or a QR code

How to prevent it happening again

These links break after site migrations, redirect clean-ups, renamed pages, changed store listings and edits to a smart link service. Add the app button to your release checklist, keep one source of truth for the store URLs, and re-test after any redirect or domain change.

How the failure unfolds
  1. Day 0

    A redirect rule is added during a site clean-up

  2. Day 0

    The app button now loops, but the page still looks normal

  3. Days 1 to 14

    Paid visitors tap the button and leave without installing

  4. Later

    Someone notices installs have dropped and starts tracing

  5. After fix

    Button reaches the store again

How FunnelGuard handles this

FunnelGuard detects this issue today. A robot visitor runs your journey on a schedule and includes an open_store_link step. That step clicks the app button and follows the redirects and script redirects, without loading the store page itself. If the chain ends in a 404, a loop or a dead page, the step fails.

A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause. Alerts can go to email, Slack, Teams, WhatsApp, a webhook or PagerDuty. Test traffic is marked with utm_source=funnelguard and fg_test=1. The Free plan covers 1 site and 2 journeys with daily checks, and paid plans have a 3-day free trial.

Questions people ask

Why does my Get the app button lead to a 404?

The link points at a page or short link that no longer exists, or at a store URL with a wrong or removed app ID. Copy the button's URL, trace it with curl or a phone, and fix the hop that returns the 404.

Why is my app download link stuck in a redirect loop?

Two redirect rules usually point at each other, for example an http to https rule against a www rule, or a plugin rule against a server rule. Remove one rule or make the final URL the target of only one rule.

How do I test an App Store or Google Play button?

Tap it on a real iPhone and a real Android phone in a private tab. Then trace the link with curl using a phone user agent and check that the last hop is a 200 store page.

Why does the app button work on iPhone but not Android?

The redirect or script probably handles only one platform, or the Android store URL has a wrong package name. Test both devices and add the missing branch or use a smart link.

Should I link straight to the store or use a smart link?

A direct store link is simplest and has the fewest points of failure. Use a smart or attribution link when you need one URL for both stores or campaign tracking, and avoid redirecting it again.

Can a JavaScript redirect cause a dead page on the app button?

Yes. If a device-detection script errors or has no fallback, visitors can end on a blank page. Add a default store URL so any device gets a working destination.

How can I know when my app button breaks?

Run the journey on a schedule and check where the button ends up. FunnelGuard does this with its open_store_link step and sends one alert with a screenshot when the link fails.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: open_store_link step follows redirects and script redirects without loading the store.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.