Sub topic 7
Adding Value and Currency to GA4 Events
Assume you have a GA4 web data stream installed and understand basic event sending with gtag.js or Google Tag Manager. This chapter focuses on the value and currency parameters used by lead and sale events.
Why value and currency matter
An event records that something happened. Parameters describe what happened. The value parameter adds a numeric monetary amount to an event, while currency identifies the currency for that amount.
For example, a completed quote request might have an estimated value of 25 USD. A completed order might have a value of 59.98 USD.
| Parameter | Purpose | Example |
|---|---|---|
| `value` | Monetary amount associated with the event | `59.98` |
| `currency` | Three-letter ISO 4217 currency code | `'USD'` |
| `transaction_id` | Unique order identifier for a purchase | `'T_12345'` |
Use a number for value, not a formatted string. Send 59.98, not '$59.98'. Send the currency code separately. Do not include currency symbols, thousands separators, or localized text in the numeric value.
// Fire after a lead form is successfully submitted
gtag('event', 'generate_lead', {
currency: 'USD',
value: 25.00
});
// Fire once on the order confirmation page
gtag('event', 'purchase', {
transaction_id: 'T_12345',
value: 59.98,
currency: 'USD',
items: [
{
item_id: 'SKU_123',
item_name: 'Trail Shoes',
price: 59.98,
quantity: 1
}
]
});Choosing the value
For a lead, use an estimate that reflects the business’s definition of value. If 10% of submitted leads become customers worth an average of 250 USD, the estimated value could be 25 USD:
0.10 × 250 = 25
Keep the calculation consistent. Do not assign arbitrary values just to increase reported revenue.
For a purchase, calculate value from the transaction rather than from a page total that might include unrelated amounts. For ecommerce reporting, the usual calculation is the sum of each item’s price × quantity. Send shipping and tax in their dedicated parameters when applicable.
A purchase event might therefore use this model:
flowchart TD
A[Item price] --> C[Multiply by quantity]
B[Item quantity] --> C
C --> D[Add item totals]
D --> E[Purchase value]
F[Currency code] --> G[Interpret monetary value]
E --> GCurrency rules and common errors
Use the currency in which the value was actually measured. If a store supports multiple currencies, send the transaction currency for each event. Do not convert every transaction to a reporting currency in the browser unless that is an intentional, documented business rule.
The currency parameter is especially important when value is present. Without it, GA4 may be unable to interpret or report the amount correctly. Use uppercase three-letter codes such as USD, EUR, or GBP.
Common errors include:
- Sending
valueas a string such as"59.98". - Sending a currency symbol instead of a code.
- Omitting
currencyfrom a valued event. - Sending a lead value that represents expected revenue in one event and gross order value in another.
- Including tax and shipping in
valuewhile also sending them separately, causing inconsistent analysis. - Sending personal information, such as a customer name or email address, in event parameters.
Value does not make an event a key event by itself. First send the event correctly, then mark the event as a key event in GA4 Admin. The value can then support reports, return-on-investment analysis, and advertising decisions.
Exercise
A business estimates that 8% of leads become customers with an average value of $400. What value should it send with each lead event, and which currency code should it use for US-dollar values?
Show answer
Send value: 32, calculated as 0.08 × 400, and currency: 'USD'.