GA4 Event-Scoped Ecommerce Metrics to BigQuery Mapping

By mapping GA4 Event-Scoped Ecommerce Metrics to BigQuery fields, you can better understand user behaviour within your ecommerce funnel and optimize conversion rates.

Here’s a breakdown of GA4 event-scoped ecommerce metrics and their corresponding BigQuery fields:

GA4 Event Scoped Ecommerce MetricsWhat it isBigQuery Field Name (Formula)
Add to cartsTracks the total instances of items being added to shopping carts.COUNTIF(event_name = 'add_to_cart')
CheckoutsCounts the instances where users initiated the checkout process.COUNTIF(event_name = 'begin_checkout')
Ecommerce quantityRepresents the total number of items involved in ecommerce transactions.SUM((SELECT SUM(quantity) FROM UNNEST(items)))
Gross purchase revenueTotal revenue generated from all types of purchases, before refunds.SUM(ecommerce.purchase_revenue)
Item-list click eventsMeasures how often users click on items listed in any formatted list.COUNTIF(event_name = 'select_item')
Item-list view eventsCounts how frequently lists of items are viewed by users.COUNTIF(event_name = 'view_item_list')
Item view eventsTracks each time an item is viewed.COUNTIF(event_name = 'view_item')
Promotion clicksThe total number of times users have clicked on promotional items.COUNTIF(event_name = 'select_promotion')
Promotion viewsCounts the views of promotional content.COUNTIF(event_name = 'view_promotion')
Purchase revenueThe net revenue from all purchases made, after accounting for refunds.SUM(ecommerce.purchase_revenue) - SUM(ecommerce.refund_value)
PurchasesThe total count of purchases completed.COUNTIF(event_name = 'purchase')
QuantityThe total units involved in ecommerce events.SUM((SELECT SUM(quantity) FROM UNNEST(items)))
Refund amountThe total monetary value of all refunds processed.SUM(ecommerce.refund_value)
RefundsCounts the total number of refunds issued.COUNTIF(event_name = 'refund')
Shipping amountThe total cost associated with shipping for transactions.SUM(ecommerce.shipping)
Tax amountThe total amount of tax charged in transactions.SUM(ecommerce.tax)
TransactionsThe total number of completed transactions or purchases.COUNTIF(event_name = 'purchase')
Transactions per purchaserThe average number of transactions made by each buyer within a timeframe.AVG(COUNTIF(event_name = 'purchase') GROUP BY user_pseudo_id)

My best selling books on Digital Analytics and Conversion Optimization

Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.

Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.

Attribution Modelling in Google Analytics and BeyondSECOND EDITION OUT NOW!
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.

Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.

About the Author

Himanshu Sharma

  • Founder, OptimizeSmart.com
  • Over 15 years of experience in digital analytics and marketing
  • Author of four best-selling books on digital analytics and conversion optimization
  • Nominated for Digital Analytics Association Awards for Excellence
  • Runs one of the most popular blogs in the world on digital analytics
  • Consultant to countless small and big businesses over the decade