Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GTM trigger Page URL no longer matches: how to find and fix it

TRK-110High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

In GTM, a trigger decides when a tag runs. Many conversion triggers say something like: fire on Page View when Page URL equals https://example.com/thank-you. That works until the page moves. If the page becomes /thank-you/, /en/thank-you, /thanks, or moves to another domain, the condition no longer matches and the trigger never fires.

Common ways a Page URL condition stops matching
Change on the siteOld URLNew URLWhy the trigger fails
Slug edited/thank-you/thanksPath text differs
Trailing slash added/thank-you/thank-you/Equals is exact
Language folder added/thank-you/en/thank-youPath now has a prefix
Domain or subdomain changewww.example.comexample.comPage URL includes the host
Query string added/thank-you/thank-you?id=123Equals on Page URL includes the query
Checkout platform change/order-complete/checkout/thank_youDifferent structure

Why it costs you leads or sales

Where the signal is lost
  1. Ad clickVisitor lands on the site
  2. Form submittedRedirects to /thanks
  3. GTM triggerExpects /thank-you, no match
  4. Conversion tagNever fires
  5. Ads and GA4 reportsConversion missing

The visitor converts normally, but the trigger never matches the new URL.

Reported conversions before and after the URL changeExample numbers
Reported conversions before and after the URL change (example)Real leads (week 1): 40 conversions per week; Reported (week 1): 40 conversions per week; Real leads (week 2): 41 conversions per week; Reported (week 2): 0 conversions per week016314040410Real leads (week 1)Reported (week 1)Real leads (week 2)Reported (week 2)conversions per week

Example: real leads stay steady, but reported conversions drop to zero once the thank-you URL changes.

How to check if your site has it

Check a trigger against the live URL
  1. Complete the conversion yourself

    Submit a test form or run a test order and note the exact URL of the final page, including slash, language folder and query string.

  2. Open GTM PreviewGoogle Tag Manager

    In Tag Manager click Preview, enter your site address and repeat the journey in the Tag Assistant window.

  3. Look at the conversion tagGoogle Tag Manager

    On the final page's event, check whether your conversion tag is listed under Tags Fired or Tags Not Fired.

  4. Compare the trigger conditionGoogle Tag Manager

    Click the tag under Tags Not Fired, open its trigger and see which condition shows as false. The Page URL value shown is what GTM actually saw.

  5. Check recent changes

    Ask who changed page slugs, redirects, language setup or the checkout platform recently.

A trigger that no longer matches

The page loads, GTM checks the condition, finds no match and the tag stays silent.

How to fix it

The aim is a condition that matches the real page and survives small changes. Prefer Page Path over full Page URL, and use contains or matches RegEx rather than equals when slashes, folders or query strings may vary.

Correct the trigger condition
  1. Open the triggerGoogle Tag Manager

    In GTM go to Triggers and open the one used by your conversion tag.

  2. Pick a sturdier variableGoogle Tag Manager

    Change Page URL to Page Path so the domain and query string no longer matter.

  3. Choose a tolerant operatorGoogle Tag Manager

    Use contains with thank-you, or matches RegEx such as ^(/[a-z]{2})?/thank-you/?$ to allow a language folder and optional slash.

  4. Test in PreviewGoogle Tag Manager

    Run the journey again and confirm the tag appears under Tags Fired on the final page.

  5. Submit and publishGoogle Tag Manager

    Click Submit, add a version name such as 'Fix thank-you trigger', and Publish.

Example trigger setup that tolerates URL changestext
Trigger type: Page View
This trigger fires on: Some Page Views
Condition: Page Path  matches RegEx  ^(/[a-z]{2})?/(thank-you|thanks)/?$
If the URL itself should be restored or you need to see the new URL
  1. Find the real thank-you URL

    Open the page in Pages and check its Permalink. Also check your form plugin's confirmation setting for a redirect URL, since it may differ from the page slug.

  2. Update GTM or the redirect

    Either update the GTM condition to the new path, or set the plugin redirect back to the path GTM expects.

How to confirm it's fixed

Confirmation checklist
  • In GTM Preview the conversion tag shows under Tags Fired on the final page
  • The tag fires once, not twice
  • The tag does not fire on other pages such as the blog or the form page
  • The hit appears in the browser Network tab or in GA4 DebugView
  • The conversion shows in GA4 or your ad platform after processing time

How to prevent it happening again

Prevention habits
  • Use Page Path with contains or RegEx instead of Page URL equals
  • Add a step to your redesign and migration checklist: re-test every GTM trigger that uses a URL
  • Name triggers by purpose, such as 'Lead thank-you page view', so people know what they depend on
  • Keep a list of conversion pages and their URLs and update it when slugs change
  • Test the full conversion journey after every site release
  • Set up redirects when you change a slug and check whether they keep the final URL GTM expects
Fragile vs resilient trigger

Before

  • Page URL equals https://www.example.com/thank-you
  • Breaks on a slash, a folder, a domain change or a query string
  • Fails silently

After

  • Page Path matches RegEx ^(/[a-z]{2})?/thank-you/?$
  • Survives slash and language folder changes
  • Still specific to the confirmation page

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor runs your real journey on a schedule, such as submitting a lead form, and checks the tracking hits sent to GA4, Google Ads, Meta and other platforms at each step. If the thank-you page loads but the expected conversion hit is not sent, the check fails.

Toggle the URL changeInteractive
Thank-you URL changed and trigger not updated

URL changed

Leads or data lost

The trigger does not match, the conversion tag never fires and the lead is missing from your reports.

One URL edit is enough to break conversion tracking without any visible error.

Questions people ask

Why is my GTM tag not firing on the thank-you page?

The most common cause is a trigger condition that no longer matches the page. Check the exact URL in GTM Preview and compare it to the trigger's Page URL or Page Path condition. A changed slug, added trailing slash or language folder will stop an equals match.

Should I use Page URL or Page Path in a GTM trigger?

Page Path is usually safer because it ignores the domain and query string. Page URL includes the host and parameters, so small changes like www or a tracking parameter can break an equals match.

Why does my GTM trigger work in Preview but not live?

If the page URL is the same, check that you published the container version and that consent settings are not blocking the tag. Also confirm live pages use the same domain and path as the one you previewed, since staging URLs often differ.

How do I make a GTM trigger ignore the trailing slash?

Use Page Path with matches RegEx and end the pattern with /? before the dollar sign, for example ^/thank-you/?$. That matches both /thank-you and /thank-you/.

How do I find which GTM triggers depend on a URL?

In GTM open Triggers and look at the condition column, or use the search box for the page name. Check each conversion trigger that uses Page URL, Page Path or Page Hostname.

How long until missing conversions show up after I fix the trigger?

The tag fires immediately after you publish, but GA4 and ad platforms can take several hours to show new conversions. Past conversions that were never sent cannot normally be recovered, so fix it quickly.

Can I be alerted when a GTM trigger stops matching?

Yes, a synthetic monitor can run the conversion journey on a schedule and alert you when the expected tracking hit is missing. FunnelGuard does this for lead forms and checkouts, and sends one alert after a second-region re-check.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

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.