Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GA4 event value sent as string with currency symbol ('$99')

TRK-055High impactPartlyBy FunnelGuardPublished Updated
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 vs right event payloadjavascript
// 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.

Where the value gets lost
  1. Visitor buysPage shows $99
  2. Tag reads priceCopies the text '$99'
  3. GA4 receives eventvalue is not a number
  4. Revenue reportShows 0 or missing
  5. Ad biddingLearns from wrong value

The event fires, but the money does not survive the trip.

Reported vs real revenueExample numbers
Reported vs real revenue (example)Real revenue: 4,950 $; Revenue in GA4: 0 $01,8983,7954,9500Real revenueRevenue in GA4$

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

Find out what value your tag really sends
  1. Open GA4 DebugView

    In GA4 go to Admin > DebugView, or use Tag Assistant to start a debug session on your site.

  2. Run the action

    Complete a test purchase or lead on your own site, stopping before real payment.

  3. 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.

  4. Check the browser network call

    In Chrome DevTools open Network, filter for 'collect', and look for the epn.value (number) or ep.value (text) parameter. The ep. prefix means GA4 received it as text.

  5. Check the dataLayer

    In the console type dataLayer and open the ecommerce or lead object. If value is 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.

Send value as a number
  1. 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.

  2. 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.

  3. Use it in the tag

    Put the new variable in the value parameter. Add the currency as its own parameter, for example USD.

  4. 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.

Custom JavaScript variable for GTM (also works in plain code)javascript
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

Confirmation checks
  • In DebugView the value parameter shows as a number with no symbol or quotes.
  • The collect request contains epn.value and not ep.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

Habits that stop it coming back
  • 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.

Try it: value as text vs numberInteractive
Value sent as '$99' text

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.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: params rules can check numeric.

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.