DEV Community

seller-mind
seller-mind

Posted on

Five CTAs on My Landing Page, All Five Pointing at the Same 404

The day before a scheduled promotion push, I did the thing I apparently never do: I opened my own landing page as a visitor and clicked the primary button.

Oh no! That page doesn't exist. — Shopify's App Store, HTTP 404.

That button said "Install Free on Shopify." So did the four pricing cards below it, in their own words: two "Get Started," two "Start Free Trial." Five calls to action, five href values, one destination. A destination that had been returning 404 for as long as the app's listing had been offline.

The page had been live the whole time. It was, by every check I had been running, fine: it returned 200, it rendered, it had a correct title tag, it had passed a Lighthouse audit I ran weeks earlier. Nothing in my process could see the only thing that mattered, which is that every path to the product ended in a 404.

The count

Before I changed anything I counted, because "the buttons are broken" is not a size:

curl -sL https://parcelglance.com | grep -o 'apps\.shopify\.com[^"]*' | wc -l
# 5
Enter fullscreen mode Exit fullscreen mode

Five references. One hero CTA, four pricing cards. One of them was the highest-intent element on the page, sitting above the fold, labelled with the exact verb a buyer wants to perform.

After the fix:

curl -sL https://parcelglance.com | grep -c 'apps\.shopify\.com'
# 0
curl -sL https://parcelglance.com | grep -c 'mailto:'
# 5
Enter fullscreen mode Exit fullscreen mode

Zero and five. That's the whole verification, and it took four seconds. Which raises the obvious question of why it wasn't in the checklist.

How a page passes every check and converts at zero

There were three layers to this, and only the third one is interesting.

The listing really was down. I knew that. It was written in my own status notes: the app listing returned 404, the app was offline, and I had a note to re-point the CTAs once it came back. So the first failure isn't ignorance. It's that I recorded the fact in one place and never propagated it to the place where it mattered.

I verified the destination and never the link. My pre-flight habit was "does the target exist" — open the listing URL, see the 404, write it down. That habit is backwards. A broken destination is a problem. A destination that five buttons point at is an outage of the entire funnel. I had checked the first and never the second, because checking the second requires starting from my own page rather than from the thing I was worried about.

Nothing in the pipeline looks at outbound links. The deploy is green. The build is green. The page is 200. There is no step anywhere that says "every href on the production page resolves." And because there's no step, there's no alarm — the failure is completely silent, which is the defining property of a broken link. A 404 on your own domain gets caught by an error pipeline. A 404 on someone else's domain, reached by clicking your own button, produces nothing but a lost visitor.

The cost is easy to state and impossible to measure: for the entire window, 100% of install intent went to a dead page. Every visitor who wanted to buy got Shopify's generic error page and no way back. And a Reddit post pointing at a landing page whose only button 404s doesn't just convert at zero — it gets reported as a dead link, and then you've spent a channel.

The fix, and the deploy that also failed

The fix itself was small. Hero: "Install Free on Shopify" → "Join the early access list." Four pricing cards: "Get Started" / "Start Free Trial" → "Join waitlist." All five href values → a mailto: with a prefilled subject. Plus one line of honest copy under the hero saying the listing was temporarily offline and that emailing would get you the install link when it returned.

Deploying it was the part that fought back.

git push origin main
# remote: Permission denied
# fatal: unable to access ... 401 Bad credentials
Enter fullscreen mode Exit fullscreen mode

The GitHub token had expired. Which meant the normal path — commit, push, let the connected Vercel project build from main — was unavailable, and the site was live with a funnel that led to a 404.

I shipped it with a direct upload instead: vercel deploy --prod, 31 seconds, aliased to the domain. The fix was live before I finished writing the incident note.

What I gave up

The commit trail. Direct upload bypasses the repository, so for one deploy there is no commit that explains production. Production now has a state that main doesn't describe until someone pushes the same change later. I took that trade because a working funnel in 31 seconds beats a correct audit trail in however long a token rotation takes — but I wrote the change into the incident note specifically because the repo was going to lie about it.

An install verb, and all attribution. "Join waitlist" is a weaker ask than "Install free," and a mailto: is a worse conversion instrument than a form: no event fires, nothing lands in analytics, and I can't tell you how many people clicked versus how many wrote an email and then closed the draft. I chose a path that works over a path I could measure. The right answer was a real notify-me form with an email field and a privacy line, which is maybe twenty minutes of work I didn't have before the scheduled post.

Pausing the promotion. I could have moved the post back a week and kept the clean "install now" message. I didn't, because the honest version — listing is offline, here's the waitlist — is a thing a real operator says, and because a week's delay has its own cost. But I did rewrite the copy to say the listing was offline rather than letting the post imply otherwise. If you're going to ship a broken funnel's workaround, don't also ship a claim that it isn't broken.

And a revert list, deliberately. Two href values and two copy strings go back when the listing returns. I put that list in the same document as the fix, because "restore later" is the class of todo that quietly never happens — and a waitlist CTA left in place after the app is live is a worse bug than the 404 was.

The check I run now

One command, before any post that points at a landing page:

curl -sL https://parcelglance.com \
  | grep -o 'href="[^"]*"' \
  | sed 's/href="//;s/"$//' \
  | grep '^http' \
  | sort -u \
  | while read -r u; do
      code=$(curl -s -o /dev/null -w '%{http_code}' -L --max-time 15 "$u")
      [ "$code" -ge 400 ] && echo "$code $u"
    done
Enter fullscreen mode Exit fullscreen mode

Every outbound link, deduplicated, followed through redirects, printed only if it's a 4xx or 5xx. On this page it would have printed one line — the 404, five references collapsed into one — and it would have printed it before the first visitor ever clicked.

The rule underneath it is the part I actually needed: the primary button on the production URL gets clicked before anything is scheduled. Not the staging URL, not the preview deployment, not "the page returns 200." Clicked, as a stranger, on the domain I'm about to send traffic to.

Question

What's the cheapest check that would have caught this for you — a link crawler in CI, a post-deploy smoke test that clicks the primary CTA, or something dumber like a checklist line that says "click the button"? I'm asking because I've now built the crawler and I still don't trust it: it only checks the pages I remembered to list, and the failure I just had was on a page I'd have sworn was fine.

Top comments (0)