Analytics

How to find and fix 404 errors on Shopify

Find the 404 pages visitors hit on Shopify with GA4 and Search Console, see where the broken links come from, and fix them with the right redirects.

·6 min read·By the ROASaurus team

Key takeaways
  • 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:

  1. Open Explore

    In GA4 go to Explore and start a Free form exploration.

  2. 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.

  3. Add a metric

    Add Views, and Total users if you want to see how many people were affected.

  4. Place them in the report

    Drag the dimensions to Rows and the metrics to Values.

  5. 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).

  6. 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.

WhereWhat it showsBest for
Google Search ConsoleIndexing › Pages › Not found (404): URLs Google tried to crawlBroken links search engines know about
GA4Page views of your 404 page, with path and referrerBroken URLs real visitors hit
Shopify reportsSessions by landing page: odd paths with visits but no salesSpotting broken landing pages from ads or email
A site crawler (SEO tool)Every internal link that points to a 404, and redirect chainsCleaning up menus, collections and blog posts
Each source sees a different slice; use at least one that shows real visits.

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

  1. Open URL redirects

    In the Shopify admin go to Content › Menus › URL redirects (in some admins: Online Store › Navigation › URL Redirects).

  2. 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.

  3. 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.

  4. 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 URLVisitsCame fromFix
/products/summer-kit-2025410Meta ad still runningPause or update the ad; redirect to the new kit
/collections/serums-old180Newsletter templateFix the template link; redirect to /collections/serums
/blogs/news/routine-guide65Another site's articleRedirect to the moved guide
/products/sample-test3UnknownLeave as 404
Example data. Paid and owned traffic first, because each visit there was bought or sent by you.

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

  1. Shopify Help Center: URL redirects
  2. Google Search Console Help: Page indexing report
  3. Google Analytics Help: Create an exploration
  4. Google Search Central: HTTP status codes and Google Search

In ROASaurus

Keep reading

AnalyticsA/B testing on Shopify: a practical guideHow to A/B test on Shopify: hypothesis, sample size, what to test, apps vs Rollouts, reading results, and checking the winner also wins on profit.AnalyticsConversion rate in GA4 for ecommerce, per collectionHow GA4 calculates session and user key event rates, how to get a purchase conversion rate per channel and per collection, and what to fix when it drops.AnalyticsEcommerce analytics and reporting tools: how to chooseThe kinds of ecommerce analytics and reporting tools, what each one answers, the features to compare and a scoring table to choose one for your store.

FAQ

Questions, answered

More answers in the FAQ and the help center.

How do I find 404 errors in GA4?

In Explore, build a free form report with Page title and Page path as rows and Views as the value, then filter the page title on the text of your 404 page, such as "404" or "Page not found".

What causes 404 errors on Shopify?

Mostly deleted or unpublished products, changed URL handles without a redirect, theme or app changes, migrations, and old links on other sites that still point to the previous URL.

Do 404 errors hurt SEO?

A few 404s are normal. The harm comes from losing the visits and links an old page had. Redirect broken URLs that get traffic or have links, and let truly dead pages stay 404.

How do I redirect a URL on Shopify?

In the Shopify admin, open URL redirects under the menu settings, enter the old path and the new target, and save. Shopify uses it only when no live page exists at the old URL.

Should I redirect all 404s to the home page?

No. Send each broken URL to its closest replacement, such as a similar product or its collection. A blanket redirect to the home page confuses shoppers and search engines.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.