Item fields & dimensions

Item Fields & Dimensions

Published:

Written by:

When Google Analytics collects e-commerce events, the export may include details about the items involved in those events. These item details are structured within a REPEATED field called items, which can hold multiple item records.

It’s important to note that the availability of this item data relies on your specific GA4 implementation, as GA4 doesn’t automatically collect this information.

Field NameData TypeDescriptionExample Values
items.item_idSTRINGID of the itemA value unique to your business
items.item_nameSTRINGName of the itemA value unique to your business
items.item_brandSTRINGBrand of the itemA value unique to your business
items.item_variantSTRINGVariant of the itemA value unique to your business
items.item_categorySTRINGCategory of the itemA value unique to your business
items.item_category2STRINGSubcategory 2 of the itemA value unique to your business
items.item_category3STRINGSubcategory 3 of the itemA value unique to your business
items.item_category4STRINGSubcategory 4 of the itemA value unique to your business
items.item_category5STRINGSubcategory 5 of the itemA value unique to your business
items.quantityINTEGERQuantity of the item1, 2, 3, etc.
items.priceFLOATPrice of the item1.99, 5.00, 8.50
items.item_revenueFLOATRevenue of the item
Note: only populated for the purchase event
2.50, 3.90, 22.56
items.item_refundFLOATRefund value of the item
Note: only populated for the refund event
1.99, 5.00, 8.50
items.price_in_usdFLOATPrice of the item, converted to USD1.99, 5.00, 8.50
items.item_revenue_in_usdFLOATRevenue of the item,  converted to USD
Note: only populated for the purchase event
2.50, 3.90, 22.56
items.item_refund_in_usdFLOATRefund value of the item, converted to USD
Note: only populated for the refund event
1.99, 5.00, 8.50
items.couponSTRINGCoupon code for the itemA value unique to your business
items.affiliationSTRINGAffiliation for the itemA value unique to your business
items.location_idSTRINGLocation for the itemA value unique to your business
items.item_list_idSTRINGThe ID of the list in which the item was includedA value unique to your business
items.item_list_nameSTRINGThe name of the list in which the item was includedA value unique to your business
Items.item_list_indexSTRINGThe position of the item in the list1, 2, 3, etc.
items.promotion_idSTRINGThe ID of a product promotionA value unique to your business
items.promotion_nameSTRINGThe name of a product promotionA value unique to your business
items.creative_nameSTRINGThe name of the creative used in the promotional spotA value unique to your business
items.creative_slotSTRINGThe name of a creative slotA value unique to your business

Sample item fields query

Select the item fields you need from the below query.

SELECT
  items.item_id,
  items.item_name,
  items.item_brand,
  items.item_variant,
  items.item_category,
  items.item_category2,
  items.item_category3,
  items.item_category4,
  items.item_category5,
  items.quantity,
  items.price,
  items.item_revenue,
  items.item_refund,
  items.price_in_usd,
  items.item_revenue_in_usd,
  items.item_refund_in_usd,
  items.coupon,
  items.affiliation,
  items.location_id,
  items.item_list_id,
  items.item_list_name,
  items.item_list_index,
  items.promotion_id,
  items.promotion_name,
  items.creative_name,
  items.creative_slot
FROM `<project>.<dataset>.<table>`, UNNEST(items) AS items

Important Note: Make sure you replace the placeholders within the WHERE clause with the specific values for the table you are working with. For example, if you want to extract data for January 31st 2021 from the e-commerce sample dataset, use the following values:

  • <project> should be replaced with bigquery-public-data
  • <dataset> should be replaced with ga4_obfuscated_sample_ecommerce
  • <table> should be replaced with events_20210131

Ensure that you substitute these placeholders with your actual project, dataset, and table names when executing the queries.


For details and examples of other fields & dimensions see:

New to the GA4 BigQuery export? Check out our free introductory guide.

X