- A 404 error means a visitor or crawler asked for a URL that no longer exists, usually after a product was deleted, a handle changed or a theme moved pages.
- GA4 can show 404s when you filter page views on the title of your 404 page; Search Console shows the 404s Google found while crawling.
- Fix first the broken URLs that get real visits, especially from ads and email, and fix the link at its source as well as adding a redirect.
- Redirect a removed product to its closest replacement or collection, not to the home page.
To find 404 errors on Shopify, look in three places: a GA4 exploration of page views whose page title contains "404" (or the title of your own not-found page), Google Search Console's list of pages not found, and the referring pages that sent visitors there. Then fix each one that gets traffic with a URL redirect in Shopify, pointing to the closest live page, and correct the link where it came from.
Broken links pile up quietly as a catalogue changes. This guide covers how to find them, why they matter for sales and search, what causes them on Shopify and how to fix them, manually or at scale.
What causes 404 errors on Shopify
A 404 ("not found") is the server's answer when a URL does not match any page. On a Shopify store that almost always means a page existed once and changed. Common causes:
- Deleted or unpublished products. Every link to the product, in your menus, blog posts, emails, ads or on other sites, now ends in a 404.
- Changed URL handles. Editing the handle of a product, collection or page creates a new URL. Shopify offers to add a redirect when you change a handle; if that box was unticked, the old URL breaks.
- Theme and app changes. A new theme or an app can change navigation, filters or landing pages and leave old links behind.
- Old external links. Pinterest pins, blog reviews, directories and bookmarks keep pointing to the URL they were made with.
- Migrations and restructures. Moving to Shopify from another platform, or reorganising collections, changes many URLs at once.
Why 404 errors matter
For shoppers and sales
A 404 page is a dead end in the middle of a shopping trip. A visitor who clicked an ad for a product and lands on "Page not found" usually leaves, and you have paid for that click. Repeated dead ends also make a store look neglected, which costs trust on the next visit.
For search
Search engines that hit a 404 drop the page from their index, and links from other sites to that URL stop passing their value to your store. A few 404s are normal on any site and do not harm rankings by themselves. The cost comes from losing the traffic and links the old page had, and from crawl time spent on dead URLs instead of new products.
How to find 404 errors in GA4
Shopify's 404 page has a standard title that contains "404" or "Page not found", depending on your theme and language. Check what yours says by opening a URL that does not exist on your store. Then build a report in GA4:
- Open Explore
In GA4 go to Explore and start a Free form exploration.
- Add the dimensions
Add Page title and screen class and Page path and screen class. Optionally add Page referrer to see where visitors came from.
- Add a metric
Add Views, and Total users if you want to see how many people were affected.
- Place them in the report
Drag the dimensions to Rows and the metrics to Values.
- Filter on the 404 title
Add a filter on Page title and screen class that contains "404" (or the text of your own not-found title).
- Sort and export
Sort by views, so the most visited broken URLs come first, and export the list if you want to work through it.
For a quick look without an exploration, open Reports › Engagement › Pages and screens and search the page titles for the same text.
Other ways to find broken links
| Where | What it shows | Best for |
|---|---|---|
| Google Search Console | Indexing › Pages › Not found (404): URLs Google tried to crawl | Broken links search engines know about |
| GA4 | Page views of your 404 page, with path and referrer | Broken URLs real visitors hit |
| Shopify reports | Sessions by landing page: odd paths with visits but no sales | Spotting broken landing pages from ads or email |
| A site crawler (SEO tool) | Every internal link that points to a 404, and redirect chains | Cleaning up menus, collections and blog posts |
In Search Console, check the page where each broken URL was found as well, so you fix the source and not only the result.
How to fix 404 errors on Shopify
Manual redirects
- Open URL redirects
In the Shopify admin go to Content › Menus › URL redirects (in some admins: Online Store › Navigation › URL Redirects).
- Create the redirect
Enter the old path (for example /products/old-serum) and the new target (for example /products/vitamin-c-serum). Shopify sends a permanent (301) redirect.
- Pick the closest target
A replacement product first, then the collection the product belonged to. Avoid sending everything to the home page: shoppers and search engines treat that much like a 404.
- Fix the source
Update the menu item, blog link, email template or ad that still uses the old URL, so visitors do not take the detour at all.
Shopify only uses a redirect when no live page exists at the old URL, so redirects never hide a working page.
At scale
The manual tool works for a handful of URLs. For hundreds, import redirects from a CSV file on the same URL redirects page, or use a redirect app that can create redirects in bulk, warn about conflicting or chained redirects, and show which old URLs still get traffic. Whatever you use, keep a list of the URLs you changed, so the next restructure does not undo the last one.
Worked example: which 404s to fix first
A fictional store exports one month of 404 hits and ranks them by what they cost:
| Broken URL | Visits | Came from | Fix |
|---|---|---|---|
| /products/summer-kit-2025 | 410 | Meta ad still running | Pause or update the ad; redirect to the new kit |
| /collections/serums-old | 180 | Newsletter template | Fix the template link; redirect to /collections/serums |
| /blogs/news/routine-guide | 65 | Another site's article | Redirect to the moved guide |
| /products/sample-test | 3 | Unknown | Leave as 404 |
404 pages in ROASaurus
ROASaurus recognises Shopify's 404 template on the storefront and records a PageNotFound event with the broken path and the page that linked to it, for visitors the store's consent mode allows to be tracked. Nothing needs switching on. In Website › Visitors (web analytics), the table Pages not found (404) lists the 25 most hit broken paths of the period with hits, visitors, the page that linked there most and the ad or UTM source of the visits; it appears once there is a 404 to show. That last column is what GA4 does not show at a glance: whether people reach the dead end from a running ad or an email campaign.
The event is stored in ROASaurus and not forwarded to ad platforms. If the store has Push storefront events to the data layer for Google Tag Manager ticked under Settings › Store, it is also pushed to the data layer as page_not_found, so a GTM tag can pick it up. On other webshops, a not-found page can mark itself with one line of code (window.__tl_page = { notFound: true }), so the same report works there.
Next step
Sources
- Shopify Help Center: URL redirects
- Google Search Console Help: Page indexing report
- Google Analytics Help: Create an exploration
- Google Search Central: HTTP status codes and Google Search