On this page
What this issue is
A Lookup Table is a Google Tag Manager (GTM) variable type. You give it an input variable, such as {{Page Path}}, and a list of rows. Each row says: if the input equals this, return that. For example, if the path is /pricing, return a Google Ads conversion label.
The table only knows the rows you typed. When you launch a new landing page, product or category, nobody adds a row. The variable finds no match. It then returns the Default Value if you set one, or undefined if you did not.
Why it costs you leads or sales
The tag still fires, so nothing looks broken in GTM. But it sends the wrong thing. A conversion tag may get an empty label and be rejected by the ad platform. A purchase event may carry a blank category. Reports then show new pages as unassigned, and ad platforms learn from incomplete data.
The damage grows with every launch. The pages you add most recently are often the ones you are promoting hardest.
- New page goes live/summer-offer launched
- Lookup table runsNo row for /summer-offer
- Tag firesSends empty or default value
- Ad platformConversion not credited correctly
The visit and the tag fire normally. The lookup returns nothing, so the platform receives bad data.
Example: pages listed in the lookup table report correctly, while the newest page does not.
How to check if your site has it
List your lookup tablesGoogle Tag Manager
In GTM, open Variables and filter the User-Defined Variables by type Lookup Table. Open each one and note its input variable.
Open Preview modeGoogle Tag Manager
Click Preview, enter your site URL, and visit the new page or product.
Read the variable valueGoogle Tag Manager
In the Tag Assistant window, select the event, open the Variables tab and find your lookup table. If it shows undefined or the default, the row is missing.
Compare the input exactly
Check the input value for case, trailing slashes, query strings and language prefixes.
/Pricingand/pricing/are different matches unless you use a regex table.Check the tag payload
Open the tag in Tag Assistant and confirm the value it sent. Then check the platform's own debug view for the same hit.
How to fix it
There are two parts: add the missing row now, and make the table safe for the next launch.
Add the missing rowGoogle Tag Manager
Open the Lookup Table variable, click Add Row, enter the exact input and the output, then save.
Set a Default ValueGoogle Tag Manager
Tick Set Default Value and enter a safe fallback. For a label or category, use a clear marker such as
unmappedso the gap shows up in reports instead of hiding.Consider matching more flexiblyGoogle Tag Manager
If you have many similar pages, switch to a RegEx Table variable. One row like
^/products/can cover a whole section. Test the pattern in Preview.Or read the value from the page
If a developer can add the value to the dataLayer on each page, read it with a Data Layer Variable. Then new pages need no table change.
Test and publishGoogle Tag Manager
Check the new page in Preview, then click Submit and Publish with a clear version name.
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'page_category': 'summer-offer'
});Then create a Data Layer Variable named page_category in GTM and use it in your tags in place of the lookup table.
Before
- Rows for old pages only
- No default value set
- New page returns undefined
- Tag sends an empty value
After
- Row added for the new page
- Default set to a visible marker
- Or a RegEx table covers the section
- Tag sends the right value
The tag runs, but the lookup returns no value, so the platform gets no usable data.
How to confirm it's fixed
- In Preview, the lookup variable shows the expected output on the new page
- The tag's payload contains that value
- The platform's debug or real-time view shows the hit with the right label or category
- An unlisted test URL returns your default marker, not undefined
- The new container version is published and live
How to prevent it happening again
- Always set a Default Value, and use a marker you can search for in reports
- Add a GTM step to your launch checklist for every new page, product or country
- Prefer RegEx tables or dataLayer values over long lists of exact matches
- Name tables clearly and note which tags use them
- Review the unmapped marker in analytics each week
- Re-test key journeys after every launch
How FunnelGuard handles this
FunnelGuard detects this issue only partly. It cannot read the rows inside your lookup table or tell that a new page is missing from it. It does not know which pages you launched, or which values you meant each page to get.
What it does check is the result. A robot visitor runs your real customer journeys on a schedule, and checks the tracking hits sent to platforms such as GA4, Google Ads and Meta. If a missing row stops a tag from sending its hit on a journey you monitor, the check fails. It is re-checked from a second region and you get one alert with a screenshot and a likely cause.
To cover the rest by hand, do three things. First, add every new page or product to your FunnelGuard journeys if it matters for leads or sales. Second, run the Preview check above after each launch, because a hit that fires with a wrong or default value can still pass. Third, watch for your unmapped default marker in analytics. The free plan covers 1 site and 2 journeys with daily checks, and paid plans have a 3-day free trial.
Related checks
If the lookup table reads a dataLayer value that was renamed, see the guide on variables returning undefined. If the tag does not fire at all, check the trigger conditions for the page URL.
Questions people ask
Why is my GTM lookup table returning undefined?
The input value has no matching row and no Default Value is set. Check the input variable in Tag Assistant for exact text, including case, trailing slashes and query strings. Then add the row or set a default.
How do I set a default value in a GTM lookup table?
Open the Lookup Table variable and tick Set Default Value. Enter the fallback, such as unmapped. The variable returns it whenever no row matches.
How do I add a new product or page to a GTM lookup table?
Open Variables, select the Lookup Table, click Add Row, and type the exact input and output. Save, test in Preview on the new page, then Submit and Publish the container.
Can a GTM lookup table match part of a URL?
A standard Lookup Table needs an exact match. Use a RegEx Table variable to match patterns, for example ^/products/ for a whole section. Test the pattern in Preview before publishing.
How can I stop lookup tables going stale after launches?
Set a visible default value, add a GTM check to your launch checklist, and use dataLayer values or RegEx tables where you can. Review the default marker in your reports regularly.
Does FunnelGuard detect a missing lookup table row?
Only partly. It cannot read your table, but it runs your journeys and checks the tracking hits. If a missing row stops a hit on a monitored journey, you get an alert. A hit with a wrong value may still need a manual check.
Why does my conversion tag fire but the platform shows nothing?
The tag may be sending an empty or default label from a lookup table. Check the tag payload in Tag Assistant and the platform's debug view for the actual value sent.
Related issues
- TRK-113Variables returning undefined (dataLayer key renamed)Fix guide
- TRK-110Trigger condition uses Page URL that no longer matchesFix guide
- TRK-106Trigger set to All Pages instead of thank-you pageFix guide
- TRK-103Workspace changes never published (tag in preview only)Fix guide
- TRK-115Custom HTML tag throwing JavaScript errorFix guide
- TRK-099GTM container snippet missingFix guide