On this page
What this issue is
Most lead tracking sends a generate_lead event (or a Google Ads conversion) with a value and a currency. The value tells the ad platform how much the lead is worth. Hardcoded means someone typed one number into the tag or the code, and every lead gets it. A quick-quote form, a demo request and an enterprise enquiry all report, say, 10 USD.
gtag('event', 'generate_lead', {
value: 10,
currency: 'USD',
form_id: 'contact'
});Why it costs you leads or sales
Example: real lead worth versus the value reported when it is hardcoded to 10. Numbers are illustrative.
- Visitor picks a serviceForm knows the lead type
- Lead event firesvalue fixed at 10
- GA4 / Google AdsAll leads look equal
- BiddingCannot favour high-value leads
The lead type is known on the site but never reaches the ad platform as a value.
How to check if your site has it
Open GA4 DebugView
In GA4 go to Admin > DebugView, then submit a test lead of each type (different forms, services or plans). Click the lead event and read the value parameter each time.
Compare in Reports
Use Explore, add the event name generate_lead, and break down Event value by your lead-type parameter (form_id, service). If one value appears for everything, it is hardcoded.
Inspect the tagGoogle Tag Manager
In Google Tag Manager, open the lead tag and look for a typed number in the Value field or event parameters. In Google Ads, open Goals > Conversions and check whether the action uses the same value for each conversion.
Search the codeCustom code
Search your theme or scripts for gtag('event', 'generate_lead' and for send_to conversion calls with a literal value.
How to fix it
| Lead type | Close rate | Average deal | Value to send |
|---|---|---|---|
| Callback request | 10% | $500 | 50 |
| Quote form | 25% | $2,000 | 500 |
| Demo request | 20% | $10,000 | 2000 |
Push the value from the page
On submit, push a dataLayer event with lead_type and value (see the code below), or add a Lookup Table variable that maps a form ID or service field to a value.
Create a Data Layer Variable
Variables > New > Data Layer Variable, name it lead_value. Use a Lookup Table variable if the value is derived from a field.
Use it in the tag
In the GA4 event tag, add parameters value = {{lead_value}} and currency = your ISO code (for example USD). In a Google Ads conversion tag, set Conversion Value to the same variable.
Find where the event is sent
It may come from a form plugin add-on, a GA plugin or GTM. Check which one sends generate_lead.
Pass a value per form
Most setups need a dataLayer push in the form's success handler, using each form's ID to choose a value. Then use the GTM steps.
Add a custom attribute or hidden field
Give each form a distinct name or a hidden field holding its value.
Read it in GTM
Push the value on successful submit and map it with a Data Layer Variable as in the GTM tab.
Replace the literal
Look up the value from a map keyed by lead type, and send it in the event, as in the code below.
const LEAD_VALUES = { callback: 50, quote: 500, demo: 2000 };
function trackLead(leadType) {
const value = LEAD_VALUES[leadType];
if (value === undefined) return; // unknown type: do not guess
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'generate_lead',
lead_type: leadType,
value: value,
currency: 'USD'
});
}
// call after a successful submit
trackLead('quote');How to confirm it's fixed
- In DebugView, each lead type shows its own value and a currency
- Value is a plain number, not a string or zero
- GTM Preview shows the variable resolving for every form
- After a day or two, GA4 Explore shows several distinct Event value amounts for generate_lead
- Google Ads conversion status is Recording and shows varied values
- Unknown or missing lead types do not send a made-up value
How to prevent it happening again
- Keep the lead-value map in one documented place (one variable or one object), not copied into each tag
- Add a new lead type to the map before launching a new form
- Review values against real closed deals every quarter
- Re-test every form in DebugView after theme, plugin or GTM changes
- Note the value logic in your tracking documentation so agencies and new staff do not reset it to a constant
How FunnelGuard handles this
Launch
Tracking set up with a placeholder value of 10 to get conversions recording
Month 1
New forms are copied with the same tag and value
Month 3
Value-based bidding is switched on using flat values
Month 4
Value per lead type added and bidding re-learns
Questions people ask
Why does every lead show the same value in GA4?
Because the tag or code sends one fixed number, such as value: 10, for every lead event. GA4 only reports what it receives. Send a value that depends on the lead type to see different amounts.
Should I send a value with generate_lead in GA4?
Yes, if you want value-based reporting or bidding. Send value as a number together with a currency code like USD or GBP. If you cannot estimate worth, leave value out rather than send a meaningless constant.
How do I set different conversion values for different forms in Google Tag Manager?
Create a Data Layer Variable or a Lookup Table that returns a value for each form or lead type. Then put that variable in the Value field of the GA4 event or Google Ads conversion tag, with a currency.
How do I decide what a lead is worth?
Multiply your average deal size by the close rate for that lead type. If you lack data, use relative values that reflect how much more one lead type is worth than another, and refine them later.
Is a hardcoded lead value always wrong?
No. If all your leads really are worth about the same, a constant is fine. It becomes a problem when lead types differ a lot in worth and you rely on value for bidding or reports.
Does a hardcoded value stop Google Ads recording conversions?
No, conversions are still counted. The loss is in optimisation: Google Ads cannot prefer higher-value leads when every conversion carries the same value.
Does FunnelGuard detect hardcoded lead values?
No, not yet. FunnelGuard checks that lead journeys work and that tracking hits are sent, but it does not judge whether the value is the same on every lead. Check this manually in GA4 DebugView and Explore.
Related issues
- TRK-055Event value sent as string with currency symbol ('$99')Fix guide
- TRK-056value sent without currency parameterFix guide
- TRK-057Wrong currency code (USD on GBP store)Fix guide
- TRK-059value of 0 on paid conversionFix guide
- TRK-049Required event parameter missing (form_id, method)Fix guide
- TRK-050Parameter value is undefined, null or '(not set)'Fix guide