Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Verification link expired or 404: how to find and fix it

CNV-285High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

After someone signs up, your app emails a verification link (also called a confirmation or activation link). It contains a one-time token that proves the person owns the address. This issue is when clicking that link shows a 404 page, an 'invalid token' message or 'link expired', instead of confirming the account.

It is different from the email never arriving, and different from the link working but sending the user into a login loop. Here the email arrives and the link is clicked, but the destination fails.

Why it costs you leads or sales

The user has just shown intent: they filled in your form and went to their inbox. A failed link is the first real experience of your product. Many will not retry. They will not request a second email, and some will assume the product is broken. Every signup lost here is also invisible in most dashboards, because the signup event was recorded as a success.

Where the signup funnel breaks
  1. Signup formSubmitted OK
  2. Verification emailDelivered to inbox
  3. Click link404 or 'expired'
  4. Account activeNever reached
  5. OnboardingNever reached

The email is sent and opened, but the link fails, so activation and everything after it is lost.

Signups that reach activationExample numbers
Signups that reach activation (example)Link works: 70 %; Link broken: 5 %02754705Link worksLink broken%

Example: of 100 signups, a broken link means most never activate. Numbers are illustrative.

Common causes

Typical causes and what you see
CauseWhat the user seesHow to spot it
Wrong domain or path in the email (staging URL, old route, missing locale)404Hover over the link and compare it to a working page URL
Token lifetime too short (for example minutes)Expired messageLink fails when clicked later but works straight away
Email security scanner opens the link first and uses up a one-time tokenExpired or 'already used'Link fails for corporate addresses but works for personal Gmail
Link broken by email client or tracking wrapper (line wrap, encoded characters, click tracking)404 or invalid tokenCopy the link from the raw email source and compare
Route removed or renamed in a deploy404 for everyoneFailures start at a deploy time
Redirect strips the token query stringInvalid tokenToken missing in the address bar after landing

How to check if your site has it

Test the link by hand
  1. Sign up with a fresh address

    Use an inbox you control, ideally one on a business domain as well as a personal one.

  2. Click the link straight away

    Note whether it confirms the account. If not, record the exact message and the address bar URL.

  3. Test a delayed click

    Sign up again and wait longer than your stated expiry before clicking. Check the message is clear and offers a resend.

  4. Click the same link twice

    The second click should show a friendly 'already verified' state, not an error.

  5. Inspect the raw link

    View the email source. Check the domain, path and that the token is complete and not altered by a tracking wrapper.

  6. Check your server logs

    Look for 404 or 410 responses on the verification route and for hits from non-human user agents right after emails are sent.

How to fix it

Fix the cause you found. The steps below depend on how your signup is built, so pick your platform.

Fix by platform
  1. Check the site URL

    In Settings > General, make sure WordPress Address and Site Address use the live domain and https. Wrong values here produce links to the wrong host.

  2. Review your membership or login plugin

    Most plugins have an email confirmation or account activation setting. Look for the link expiry and the activation page, and confirm that page is published and not set to noindex or password protected.

  3. Exclude the link from caching and optimisation

    Add the activation page and its query parameters to the exclusions of your caching plugin and CDN so the token is not cached or stripped.

  4. Turn off email click tracking for this email

    If your SMTP or email plugin rewrites links, disable that for transactional emails.

Example: verify page that tolerates repeat clicks (Node/Express style)javascript
app.get('/verify', async (req, res) => {
  const { token } = req.query;
  const record = await db.findVerification(token);
  if (!record) return res.status(404).render('verify-invalid', { resendUrl: '/resend-verification' });
  if (record.verifiedAt) return res.render('verify-already-done', { loginUrl: '/login' });
  if (record.expiresAt < Date.now()) return res.status(410).render('verify-expired', { resendUrl: '/resend-verification' });
  // Show a confirm button so link scanners that only load the page do not use the token
  res.render('verify-confirm', { token });
});

app.post('/verify', async (req, res) => {
  await db.markVerified(req.body.token);
  res.redirect('/welcome');
});
Verification page behaviour

Before

  • Link expires in 15 minutes
  • Scanner opens the link and uses the token
  • User sees a bare 404 with no next step

After

  • Link valid for 24 hours or more
  • Page needs a button press to confirm
  • Expired or used links show a clear message and a resend button
Token used up by an email scannerInteractive
Link confirms on a simple page load

Confirms on load

Leads or data lost

A security scanner loads the link first and uses the token. The real user then sees 'expired' or 'already used'.

Toggle the cause to see why one-time tokens on a plain GET request fail for some inboxes.

How to confirm it's fixed

Confirmation checks
  • A fresh signup produces an email whose link uses your live domain
  • Clicking the link straight away verifies the account
  • Clicking it again shows an 'already verified' message, not an error
  • An expired token shows a clear message and a working resend button
  • The link works from a business inbox as well as a personal one
  • The token is still in the URL after any redirect
  • Server logs show no new 404s on the verification route

How to prevent it happening again

How a deploy silently breaks verification
  1. Day 1

    A developer renames the verify route during a refactor.

  2. Day 1

    Signups still succeed and emails still send, so nothing looks wrong.

  3. Day 2-5

    Every new user clicks a link that returns 404 (example timings).

  4. Day 6

    Someone notices the activation numbers dropped and traces it to the route.

Habits that prevent it
  • Add the signup, email and click path to your release checklist
  • Keep old routes as redirects that preserve query strings
  • Store the public base URL in one setting and never hard-code hosts
  • Set token expiry to a sensible length and document it
  • Keep a visible resend option on every error state
  • Test after changes to the email provider, link tracking, CDN or redirects

How FunnelGuard handles this

FunnelGuard detects this issue today. A robot visitor runs your signup journey on a schedule, then follows the link in the verification email (the email_link check opens the link) and checks whether it lands on a working page. If it returns a 404 or an error, the failure is re-checked from a second region before one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause.

Test traffic is marked with utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent. It does not bypass CAPTCHAs or bot protection. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans include a 3-day free trial.

Questions people ask

Why does my email verification link say expired immediately?

The token lifetime may be very short, the server clock may differ from the one that created the token, or an email security scanner may have already opened the link and used the one-time token. Extend the expiry to at least 24 hours and make the page tolerate repeat visits.

Why is my verification link giving a 404 error?

The link usually points to a route that does not exist. Common reasons are a wrong domain or path in the email template, a route renamed in a deploy, or a redirect or cache rule that strips the token. Compare the link in the raw email to a working URL on your site.

Why does the verification link work for Gmail but not for company email?

Many company mail systems scan links in incoming mail by opening them. If your link confirms on a plain page load, the scanner uses the token before the person clicks. Show a confirm button that sends a POST so only a real click verifies the account.

How long should an email verification link be valid?

Many products use 24 hours or longer, but there is no single rule. Choose a window that fits how quickly your users check email, and always offer a resend option so an expired link is not a dead end.

How do I test my signup verification email link?

Sign up with a fresh inbox, click the link immediately, click it again, then try one after the expiry window. Also check it from a business address. You can automate this with a synthetic monitor that runs the journey and opens the email link on a schedule.

Can FunnelGuard tell me when my verification link breaks?

Yes. FunnelGuard runs the signup journey, opens the link in the verification email and alerts you if it does not land on a working page. The failure is re-checked from a second region first, and the alert includes a screenshot and a likely cause.

What should an expired verification link page show?

It should say the link has expired or was already used, and give a one-click button to send a new link. If the account is already verified, send the user to the login page instead of showing an error.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: email_link opens the link.

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.