Purchase event missing required parameters
Purchase event missing transaction_id, value, or currency — required for revenue reporting in GA4.
Summary
- rule_id —
ga4-ecommerce-missing-params - purpose — Detect GA4 purchase event tags missing one or more of
transaction_id,value, orcurrency - effect — GA4 reports $0 revenue and cannot deduplicate transactions
- layer — container
- reversibility — non-destructive
What fires this
The rule calls getGA4EventTags and filters to tags where ga4.eventName is purchase (case-insensitive). Tags where ga4.sendEcommerceData is enabled are excluded — that setting forwards the ecommerce object from the dataLayer directly, so parameter-level checking does not apply. For the remaining purchase tags, the rule inspects ga4.eventParameters and checks whether transaction_id, value, and currency each appear by name. Any tag missing one or more of those parameters is flagged with a list of which are absent. Paused tags are not evaluated.
Why it matters
GA4 requires all three parameters to produce usable ecommerce data. Without transaction_id, GA4 cannot deduplicate events — a page refresh on the confirmation screen logs a second purchase. Without value and currency, every transaction appears as $0 in Revenue, LTV, and Monetization reports. The data loss is silent: the tag fires, the hit is accepted, and no error surfaces in GA4 until someone inspects the reports. items is additionally required for product-level reporting, but the three checked here are the minimum for any revenue figure to appear.
Before / after
// Purchase tag event parameters — value and currency absent
dataLayer.push({
event: 'purchase',
transaction_id: order.id
// value and currency not mapped
})
// All three required parameters present
dataLayer.push({
event: 'purchase',
transaction_id: order.id,
value: order.total,
currency: 'USD'
})
Remediation
- Open each flagged purchase event tag and note which parameters are listed as missing.
- Locate where
transaction_id,value, andcurrencyare available on the order confirmation page — typically in the order object or theecommercedataLayer push. - Create GTM Data Layer Variables for any missing dynamic values (e.g.,
ecommerce.value,ecommerce.currency). - Add each variable as an event parameter in the purchase tag.
- Alternatively, enable "Send Ecommerce Data" in the tag if the site already pushes a correctly structured
ecommerceobject to the dataLayer on confirmation. - Verify in GTM Preview and GA4 DebugView that purchase hits include all three parameters with non-zero values.
Metadata
- Severity
- critical
- Tier
- warning
- Category
- ga4
- Layer
- container
- Version
- 1
- Effort
15min(about 15 minutes)- Reversibility
- non-destructive
See also
- GA4 rules — other rules in this category
- Health score — how this rule contributes to the score
- Rules catalog — browse all rules
Examples
curl https://developer.tagmanifest.com/v1/evaluate-rule \
-H "Authorization: Bearer $TM_API_KEY" \
-H "Content-Type: application/json" \
-d '{"rule_id":"ga4-ecommerce-missing-params","url":"https://example.com"}'
User: Run ga4-ecommerce-missing-params on https://example.com
# Tool call
{
"tool": "evaluate_rule",
"arguments": {
"rule_id": "ga4-ecommerce-missing-params",
"url": "https://example.com"
}
}