On this page
What this issue is
GA4 events such as purchase, generate_lead and begin_checkout can carry a value parameter (the worth of the event) and a currency parameter. value must be a number. This issue happens when the value arrives as a string with a currency symbol, for example "$99", "£1,299.00" or "99 USD".
// Wrong: value is text with a symbol
gtag('event', 'purchase', {
transaction_id: 'T-1001',
value: '$99',
currency: 'USD'
});
// Right: value is a number
gtag('event', 'purchase', {
transaction_id: 'T-1001',
value: 99.00,
currency: 'USD'
});Why it costs you leads or sales
The event itself may still be counted, so the conversion count looks healthy. But the money attached to it is wrong. Revenue reports show zero or far too little, return on ad spend looks poor, and value-based bidding in Google Ads learns from bad data. You may pause campaigns that are actually profitable, or fail to tell which leads are worth more.
- Visitor buysPage shows $99
- Tag reads priceCopies the text '$99'
- GA4 receives eventvalue is not a number
- Revenue reportShows 0 or missing
- Ad biddingLearns from wrong value
The event fires, but the money does not survive the trip.
Example: 50 orders of $99 each. Real revenue is $4,950, but GA4 records almost none when value arrives as text.
How to check if your site has it
Open GA4 DebugView
In GA4 go to Admin > DebugView, or use Tag Assistant to start a debug session on your site.
Run the action
Complete a test purchase or lead on your own site, stopping before real payment.
Inspect the event
Click the event in DebugView and look at the value parameter. A number shows without quotes. Text with a symbol, comma or currency code is the problem.
Check the browser network call
In Chrome DevTools open Network, filter for 'collect', and look for the
epn.value(number) orep.value(text) parameter. Theep.prefix means GA4 received it as text.Check the dataLayer
In the console type
dataLayerand open the ecommerce or lead object. Ifvalueis in quotes there, the source is the cause.
How to fix it
The fix is the same everywhere: get the price from a clean source, convert it to a number, and send the currency separately. How you do that depends on your platform.
Find the source variable
Open the GA4 event tag and see which variable feeds the value field. If it is a DOM Element or Custom JavaScript variable reading page text, that is the cause.
Clean it with a Custom JavaScript variable
Create a Custom JavaScript variable (code below) that strips everything except digits and the decimal point and returns a number.
Use it in the tag
Put the new variable in the value parameter. Add the currency as its own parameter, for example USD.
Better still, use the dataLayer
Ask your developer to push a numeric value in the dataLayer and read it with a Data Layer Variable instead of scraping text.
Identify what sends the event
It may be a GA4 plugin (for example Site Kit or a WooCommerce analytics plugin), a form plugin add-on or a GTM container. Check the plugin's ecommerce or event settings.
Use the order total, not displayed text
For WooCommerce, send the order total from the order data rather than the formatted price from the page.
Patch custom code if needed
If a theme snippet pushes the value, wrap it with a number conversion such as
(float) $order->get_total()in PHP.
Check how the tag gets the price
In Liquid, the
moneyfilters output formatted text with a symbol. Do not use them for event values.Output the raw amount
Divide the price in cents by 100, for example
{{ order.total_price | divided_by: 100.0 }}, and send that as value.Check custom pixels and apps
If you use Settings > Customer events with a custom pixel, use the numeric price fields on the event data and not formatted strings.
Find the custom code
Look in Project Settings > Custom Code and in page-level embeds for a script that reads a price element's text.
Convert the text
Use the JavaScript function below to turn text like '$99' into 99 before sending the event.
Publish and retest
Publish the site and check DebugView again.
Find where value is set
Check the funnel's Tracking Code in Settings, or any custom code element on the order or thank-you step, for a hard-coded or scraped value.
Replace with a plain number
Use a numeric value such as 99 in the event code, or convert text with the JavaScript function below.
Convert before sending
Use a parsing function and check the result is a finite number before calling gtag or pushing to the dataLayer.
Send currency separately
Use the three-letter uppercase code, for example USD, GBP or EUR, in the currency parameter.
function () {
var raw = {{Price Text}}; // your existing variable, e.g. '$1,299.50'
if (raw === undefined || raw === null) return undefined;
// Note: this assumes a dot decimal. For '1.299,50' style prices, handle commas first.
var cleaned = String(raw).replace(/[^0-9.]/g, '');
var n = parseFloat(cleaned);
return isFinite(n) ? n : undefined;
}How to confirm it's fixed
- In DebugView the value parameter shows as a number with no symbol or quotes.
- The collect request contains
epn.valueand notep.value. - The currency parameter is a separate three-letter uppercase code.
- Values with thousands separators and decimals (such as 1,299.50) come through correctly.
- After 24 to 48 hours, revenue or event value appears in your GA4 reports.
- Google Ads imported conversions show a value that matches the order.
How to prevent it happening again
- Read values from the dataLayer or order data, never from visible page text.
- Add a number conversion step in one shared variable so every tag uses it.
- Retest the value after theme, plugin or price-format changes, and after changing currency or language.
- Keep a short tracking spec that lists each event, its value type and its currency.
- Run a scheduled test purchase or lead so a change is caught within a day.
How FunnelGuard handles this
FunnelGuard detects this issue only partly. A robot visitor runs your real journey on a schedule and checks the tracking hits sent to GA4 and other platforms. Its parameter rules can check that a parameter such as value is numeric, so a hit carrying '$99' where a number is expected can be flagged when you set that rule up.
Text with symbol
Leads or data lost
GA4 cannot read the value as a number. Revenue is missing or zero and bidding learns from bad data.
Toggle to see what the same purchase looks like in your reports.
Questions people ask
Why is my GA4 revenue showing zero when purchases are tracked?
A common cause is that the value parameter is sent as text such as '$99' instead of the number 99. GA4 counts the event but cannot add up the text, so revenue is missing. Check DebugView and send a plain number.
Does GA4 accept a currency symbol in the value parameter?
No. The value parameter should be a number like 99 or 99.50. Put the currency in the separate currency parameter as a three-letter code such as USD, GBP or EUR.
How do I convert a price string to a number in Google Tag Manager?
Create a Custom JavaScript variable that removes everything except digits and the decimal point, then returns parseFloat of the result. Use that variable in the value field of your GA4 event tag. Better still, read a numeric value from the dataLayer.
How can I tell if GA4 received my value as text?
Open Chrome DevTools, go to Network and filter for 'collect'. A numeric value appears as epn.value, while text appears as ep.value. DebugView also shows the raw value so you can spot symbols or quotes.
Why does my value look wrong for prices like 1.299,50?
European formats use a dot for thousands and a comma for decimals. If you strip all non-digits except dots, the result is wrong. Swap or remove separators correctly first, or use the raw numeric price from your platform.
Will a wrong value affect Google Ads bidding?
Yes. If conversions are imported from GA4 or share the same tag data, a missing or wrong value feeds value-based bidding with bad information. Fix the value and allow time for reporting to refresh.
Can FunnelGuard detect a value sent as '$99'?
Partly. Its parameter rules can check that a value is numeric, so text can be flagged when the rule is set. It cannot confirm that the number is the right amount, so compare values with real orders by hand.
Related issues
- TRK-056value sent without currency parameterFix guide
- TRK-057Wrong currency code (USD on GBP store)Fix guide
- TRK-058Lowercase or invalid ISO currency codeFix guide
- TRK-059value of 0 on paid conversionFix guide
- TRK-050Parameter value is undefined, null or '(not set)'Fix guide
- TRK-051Parameter values contain template placeholders ({{Click Text}})Fix guide