Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Lowercase or invalid currency code in GA4: how to fix it

TRK-058Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

GA4 events that carry money (such as purchase, generate_lead with a value, or add_to_cart) use two parameters together: value (the amount) and currency (what the amount is in). The currency parameter must be a three-letter, uppercase code from the ISO 4217 standard. Examples: USD, GBP, EUR, CAD, AUD.

Valid and invalid currency values
Value sentValid?Why
USDYesUppercase ISO 4217
usdNoLowercase
$NoSymbol, not a code
US$NoMixed symbol and letters
UKPNoNot a real code; the pound is GBP
RMBNoChinese yuan is CNY
{{currency}}NoUnfilled template placeholder

Why it costs you leads or sales

Where the value gets lost
  1. Customer convertsPurchase or paid lead
  2. Event sentvalue: 99, currency: usd
  3. GA4 revenue reportValue not counted
  4. Ads biddingLearns from missing value

The event arrives, but the money does not count.

Reported revenue vs real revenueExample numbers
Reported revenue vs real revenue (example)Real revenue: 5,000 USD; Revenue in GA4: 2,000 USD01,9173,8335,0002,000Real revenueRevenue in GA4USD

Example: a store with 100 orders at 50 USD each. If 60 orders send a bad code, reports show far less than the real total.

How to check if your site has it

Find bad currency codes
  1. Open GA4 DebugView

    In GA4 go to Admin > DebugView. Use Tag Assistant or GTM Preview to put your browser in debug mode, then run a test conversion.

  2. Click the monetary event

    Select the purchase or lead event and read the currency and value parameters. The code must be three uppercase letters.

  3. Check the browser Network tab

    Open developer tools, filter requests by collect, and look for cu= in the request. The value after it is the currency sent.

  4. Check the data layer

    In the console, type dataLayer and inspect the ecommerce object for the currency field.

  5. Test every currency

    If your store switches currencies, test each one. A bug often hits only one.

Quick console check of the data layerjavascript
dataLayer
  .filter(e => e.ecommerce && e.ecommerce.currency)
  .forEach(e => console.log(e.event, e.ecommerce.currency,
    /^[A-Z]{3}$/.test(e.ecommerce.currency) ? 'OK' : 'INVALID'));

How to fix it

Fix the currency code by platform
  1. Find the currency field

    Open your GA4 event tag and look at the currency parameter or the ecommerce settings.

  2. Normalize the variable

    Create a Custom JavaScript variable that returns the code in uppercase, or hardcode the code if you only sell in one currency.

  3. Preview and publish

    Use Preview mode, confirm the tag sends USD (or your code), then publish.

Correct GA4 event with a valid currency codejavascript
gtag('event', 'purchase', {
  transaction_id: 'T-10042',
  value: 99.00,
  currency: 'USD',
  items: [{ item_id: 'SKU-1', item_name: 'Example product', price: 99.00, quantity: 1 }]
});
GTM Custom JavaScript variable that normalises the codejavascript
function() {
  var c = {{DLV - currency}};
  if (typeof c !== 'string') return undefined;
  c = c.trim().toUpperCase();
  return /^[A-Z]{3}$/.test(c) ? c : undefined;
}
Currency parameter before and after

Before

  • currency: 'usd'
  • Value may be ignored in revenue reports
  • Ads import shows missing value

After

  • currency: 'USD'
  • Value counted in GA4 reports
  • Value-based bidding gets full data

How to confirm it's fixed

Confirmation checklist
  • Run a test conversion with debug mode on
  • DebugView shows currency as three uppercase letters
  • The value is a number, not a string with a symbol
  • Every currency you sell in passes the same test
  • After 24-48 hours, revenue appears in the GA4 monetization reports

How to prevent it happening again

Prevention habits
  • Pull currency from one source, such as the store settings, not typed strings
  • Add a validation step that checks /^[A-Z]{3}$/ before the event is sent
  • Re-test after theme, plugin or checkout changes
  • Document which currency each site or region uses
  • Run scheduled test conversions so a regression is caught quickly

How FunnelGuard handles this

Questions people ask

Does GA4 accept a lowercase currency code like usd?

GA4 expects the currency as an uppercase ISO 4217 code such as USD. A lowercase value is not a valid code, so the monetary value on that event may not be counted. Send the uppercase version to be safe.

Why is my GA4 revenue not showing even though purchases are tracked?

One common cause is a missing or invalid currency parameter on the purchase event. The event is counted, but the value is not. Check the event in DebugView and confirm currency is a valid three-letter uppercase code.

What is the correct currency code for the British pound in GA4?

Use GBP. Codes like UKP or the symbol £ are not valid ISO 4217 codes. The same rule applies to other currencies: use the three-letter code, such as EUR for the euro.

How do I check what currency my GA4 event is sending?

Open GA4 Admin > DebugView, run a test conversion in debug mode, and click the event to read its parameters. You can also filter the browser Network tab by collect and look at the cu value.

Can I fix a wrong currency code in GA4 reports after the fact?

No, GA4 does not let you rewrite data that was already collected. Fix the code at the source so new events are correct, and note the date of the fix in your reporting.

Is a symbol like $ okay as a currency value?

No. The currency parameter needs a three-letter ISO code such as USD. Symbols and words like dollars are not valid, and the value parameter should be a plain number too.

Does a valid code guarantee the currency is right?

No. A valid code like USD on a store that charges in GBP passes a format check but is still wrong. Compare the code with the currency your customers actually pay in.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: params rule regex.

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.