GTM lookup tables and regex dropping conversion values

Why missing default values and case-sensitive regex rules in Google Tag Manager variables drop conversion values from your B2B ad accounts.

Your agency launches a new value-based bidding strategy in Google Ads to target higher-value B2B orders. A week later, your return on ad spend drops to zero. The agency blames the campaign learning phase. Your technical team eventually checks the Google Tag Manager variables. The conversion tags are firing perfectly, but half of them are passing a value of zero pounds, silently starving the bidding algorithm of data.

Tag Manager variables are literal. When you use a Lookup Table or a Regular Expression to assign a value based on a URL or a form choice, the system expects an exact match. If the URL case differs or the match fails entirely, the variable breaks. The dashboard gets a recorded conversion with an undefined value. You get a bidding strategy that learns to optimise for worthless leads.

We check what happens all the way through the value assignment process. Does the table account for capital letters? Does it have a default fallback? We follow the data from the user's action to the final payload sent to the ad platform. Then we fix the fragile lookup rules before they poison another campaign.

This matters when algorithms determine where your budget goes. If your Google Ads account receives a steady stream of undefined or zero-value conversions because a Tag Manager variable lacked a fallback, you effectively train the network to ignore your most profitable customers.

The undefined default trap

When an agency builds a Lookup Table in Tag Manager to assign values-for example, mapping a 'Bronze' form selection to fifty pounds and a 'Gold' selection to five hundred-they assume the user will always trigger one of the defined options.

If the user triggers an option that is not in the table, and the developer forgot to check the 'Set Default Value' box, Tag Manager does not send a zero. It sends an 'undefined' object.

When Google Ads or GA4 receives an undefined value, the system reacts poorly. Some tags will refuse to fire at all. Others will fire, record the conversion, but default the revenue to zero. Your analytics dashboard shows a healthy volume of conversions, masking the fact that the commercial value attached to them has completely vanished.

Case sensitivity and exact matches

The most common reason a Lookup Table fails to find a match is case sensitivity. Lookup Tables in Tag Manager are strictly case-sensitive. If your table expects the URL path /Thank-You to trigger a specific value, but the user arrives via a link that forces lowercase to /thank-you, the table fails. The conversion value drops to the default, or worse, to undefined.

Agencies often switch to Regular Expression (RegEx) tables to solve this, because they include an 'Ignore Case' toggle. However, a recent Tag Manager update placed heavy emphasis on a setting called 'Full Matches Only'.

If 'Full Matches Only' is enabled, a RegEx rule for checkout will not match the URL /checkout/success. The variable looks at the path, fails to find the exact boundary match, and drops the value. The tag still fires, but the payload is empty.

When your dashboard says your high-value campaigns are failing to generate revenue, there should be an actual commercial failure. Your customers did not suddenly stop buying the premium tier. The tracking variable simply forgot how to read the URL.

The cost of fragile variables

We evaluate the impact of these variable misconfigurations by looking at the gap between what the website processed and what the advertising platform learned.

What the report saysWhat is happening underneathWhat it does to your spend
Zero ROAS on new campaignsA Lookup Table returned 'undefined' for the value.You pause profitable campaigns because the algorithm cannot see the revenue.
Missing conversion tiersCase sensitivity broke the match on a lowercase URL.You lose visibility into which products actually drive your margin.
Tag fires but value is zero'Full Matches Only' prevented a partial RegEx match.You train Google Ads to acquire low-value traffic.
Inconsistent lead valuesThe default fallback was left entirely blank.Your CRM data completely divorces from your marketing reports.
Value-based bidding failsThe ad network discards undefined conversion objects.You waste the premium targeting capabilities of your ad platforms.

Designing resilient variables

To protect your bidding algorithms, the variables feeding them must be structurally resilient. Every Lookup or RegEx Table that passes a commercial value must have a defined fallback.

Setting the default value to a baseline figure, or even a literal zero, guarantees that the advertising platform receives a valid numeric input. It prevents the tag from crashing or sending an undefined object.

For case sensitivity, the cleanest solution is to force the input variable into lowercase before it ever reaches the table. By using a 'Change Case to Lowercase' format on the source variable, you guarantee that the Lookup Table will always evaluate a predictable, lowercase string, rendering capitalisation breaks impossible.

Diagnosing dropped values

When the conversion volume holds but the revenue drops, we check the specific variable configurations in Tag Manager.

Diagnostic symptomUnderlying causeRequired fix
GA4 shows conversions with no valueThe Lookup Table lacks a Default Value fallback.Set a baseline numeric default value for all commercial tables.
Lowercase URLs break the trackingThe Lookup Table is strictly case-sensitive.Force the input variable to lowercase before it hits the table.
Sub-folders fail to matchRegEx table has 'Full Matches Only' enabled.Disable the setting to allow partial string matching on URLs.
Tags fire in preview but not liveConsent Mode v2 silently dropped the unconsented data.Verify the ad_storage consent state before debugging the variable.

Frequently asked questions

Should we use RegEx Tables instead of Lookup Tables?

RegEx Tables are more powerful and handle case-insensitivity natively, but they require technical knowledge to configure correctly. For simple one-to-one mappings, a standard Lookup Table with a forced-lowercase input is less prone to formatting errors.

What value should we use for a default fallback?

If you are tracking distinct eCommerce purchases, the fallback should capture the data layer variable for the cart total. If you are assigning static values to B2B leads, use your lowest acceptable baseline value rather than zero, so the algorithm still registers a positive signal.

Why do the tags look fine in GTM Preview mode?

Tag Manager's Preview mode only shows what the container attempted to send. It does not show what Google Ads actually accepted. If a value is undefined, Preview mode will show the tag firing, but the ad platform's server will reject the payload upon receipt.

Does Consent Mode affect how these variables work?

Consent Mode does not change how the variable evaluates, but it masks the symptoms. If a user denies ad_storage, Google Ads will silently drop the conversion data even if your Lookup Table calculated the value perfectly. You must isolate the consent state before rewriting your tables.

Related reading