On this page
What this issue is
Universal Links (iPhone) and App Links (Android) use ordinary https URLs such as https://example.com/offer/spring. If the app is installed, the phone opens the app on the right screen. If it is not installed, or the visitor is on a laptop, the browser loads that same URL from your server.
The issue appears when that URL only exists inside the app. The server has no page for it and answers 404 Not Found. The link works for existing app users and fails for everyone else.
- Ad or email clickDeep link URL is opened
- App not installedPhone falls back to the browser
- Web fallback pageServer answers 404
- Store pageNever reached
- InstallLost
Visitors with the app get in. Visitors without it hit a 404 and never reach the store.
Why it costs you leads or sales
Paid clicks, emails and QR codes often point at deep links. New customers by definition do not have the app yet, so they are the people who get the error. You pay for the click and lose the install or the sale. Desktop visitors who open the link from an email fail in the same way.
Example: 1,000 clicks, where 20% already have the app. Numbers are illustrative.
How to check if your site has it
Open the URL on a desktop browser
Paste the deep link into Chrome on a computer. Desktop never opens the app, so you see exactly what a non-app visitor sees.
Check the status code
Run the command below, or use the Network tab in browser developer tools. You want 200, or a redirect that ends in 200. A final 404 is the issue.
Test on a phone without the app
Use a device or profile where the app is uninstalled, or a private window, and tap the link from a message or email.
Repeat with campaign parameters
Add your real UTMs and click ids. Some servers 404 only when the query string is present.
curl -sIL -o /dev/null -w "%{http_code} %{url_effective}\n" "https://example.com/offer/spring?utm_source=test"How to fix it
Pick one fallback for each deep link path: a real web page with the same content, or a landing page or redirect that sends people to the right store. Do not leave the path empty.
List every deep link path
Collect the paths in your apple-app-site-association file, your Android intent filters and your campaign links.
Choose the fallback for each
Best: a web page with the same content. Otherwise: a landing page with store buttons, or a redirect to the App Store or Google Play depending on the device.
Publish it at the same URL
The page must live at the exact https URL the deep link uses, because that is what the browser loads.
Keep campaign parameters
Make sure the page or redirect does not strip UTMs or click ids.
Add a catch-all for unknown paths
Send unmatched app paths to a general page, not a 404.
Create a page at the deep link slug
Under Pages > Add New, set the permalink to match the deep link path, and add store buttons or the content.
Or add a redirect
Use a redirect plugin you already trust, set the source to the deep link path and the target to a landing page. Choose a 301 or 302 and keep the query string.
Add a URL redirect
Go to Online Store > Navigation > View URL Redirects, enter the deep link path as Redirect from and a page or collection as Redirect to.
Or create a page
Under Online Store > Pages, add a page whose handle matches the path. Note that Shopify reserves some prefixes, so a path may need a redirect instead.
Create a page or a 301
Add a page with the matching slug, or go to Project settings > Hosting > 301 redirects and map the path to a landing page.
Use the redirect manager
In Settings > SEO > URL redirect manager, add the old path and the new page. Or build a page with the same URL slug.
Add a URL mapping
Go to Settings > Developer Tools > URL Mappings (Advanced) and add a line like the example below, or create a page with the same slug.
Add a server route or redirect
Serve a page or redirect for each deep link path. Example rules are in the next code block.
location /offer/ {
return 302 /get-the-app$is_args$args;
}Before
- App users open the right screen
- Everyone else sees 404 Not Found
- Desktop clicks from email fail
After
- App users still open the right screen
- Others see a page or reach the store
- Campaign parameters survive
How to confirm it's fixed
- The deep link URL returns 200 on desktop, including with UTMs
- A phone without the app reaches a page or the store
- A phone with the app still opens the right screen
- The final URL still carries utm_ and click id parameters
- An unknown app path no longer shows a 404
How to prevent it happening again
Add the fallback to your release checklist: every new app route or campaign path needs a web page or redirect before the link goes live. Test links on a device without the app, not only on team phones. Re-test after site migrations, redirect changes and CMS updates, since these often delete pages that deep links rely on.
How FunnelGuard handles this
FunnelGuard detects this issue today. Its deep link fallback check loads your deep link's web URL the way a visitor without the app would, and flags it when the page answers 404. The check runs on a schedule, so a fallback that breaks after a release or a redirect change is caught without anyone testing by hand. A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause.
You can start on the Free plan (1 site, 2 journeys, daily checks, no card), or run the free read-only website audit first.
Questions people ask
Why does my deep link show a 404 page?
The deep link is a normal https URL. If the app is not installed, the browser loads it from your server, and if no page exists at that path the server answers 404. Create a page or redirect for that path.
What should a deep link do when the app is not installed?
It should land on a live web page. Ideally that is the same content on the web, or a page or redirect that sends the visitor to the App Store or Google Play.
How do I test a deep link without the app installed?
Open the URL on a desktop browser, or on a phone where the app is uninstalled. You can also run curl with the -IL flags and check that the final status is 200, not 404.
Will adding a web page stop the app from opening?
No. Universal Links and App Links are controlled by the association files and the app's settings. A web page at the same URL is only loaded when the app does not take the link.
Do UTMs matter on the fallback page?
Yes. If the fallback redirect drops UTMs or click ids, the visit loses its campaign source. Keep the query string when you redirect.
Should I redirect deep links to the app store or a landing page?
A landing page with store buttons works well because it explains the offer and handles both iPhone and Android. A direct store redirect is simpler, but it needs device detection to pick the right store.
Can FunnelGuard tell me if my deep link returns 404?
Yes. Its deep link fallback check requests the web URL and flags a 404 response, then alerts you after a second-region re-check.
Related issues
- APP-007Get the app button leads to a 404, a loop or a dead page instead of the storeFix guide
- APP-009apple-app-site-association missing, behind a redirect or a login, or served as an HTML pageFix guide
- APP-011Campaign URL not covered by the Universal Links rules (path excluded or missing)Fix guide
- APP-017Android app's intent filters don't cover the campaign URLFix guide
- APP-006iPhone visitors sent to Google Play (or Android visitors to the App Store)Fix guide
- APP-018Deferred deep link loses the campaign or destination after installFix guide