Analytics events reference
The document describes the default events that PWA Studio tracks for Adobe Analytics. Additional events can be added by following the steps in Custom Events.
- CART_ADD_ITEM
- CART_PAGE_VIEW
- CART_REMOVE_ITEM
- CART_UPDATE_ITEM
- CATEGORY_PAGE_VIEW
- CMS_PAGE_VIEW
- MINI_CART_VIEW
- ORDER_CONFIRMATION_PAGE_VIEW
- PRODUCT_CLICK
- PRODUCT_IMPRESSION
- PRODUCT_PAGE_VIEW
- SEARCH_REQUEST
- USER_CREATE_ACCOUNT
- USER_SIGN_IN
- USER_SIGN_OUT
CART_ADD_ITEM
The CART_ADD_ITEM event is fired whenever a user adds a product to their cart.
payload: {
cartId,
sku: item.product.sku,
name: item.product.name,
priceTotal: currentPrice.value,
currencyCode: currentPrice.currency,
discountAmount: currentDiscount.amount_off,
selectedOptions: selectedOptionsLabels,
quantity
}
CART_PAGE_VIEW
The CART_PAGE_VIEW event is fired whenever a user views the shopping cart page.
payload: {
cart_id: cartId,
products: cartItems
}
CART_REMOVE_ITEM
The CART_REMOVE_ITEM event is fired whenever a user removes a product from their cart.
payload: {
cartId,
sku: item.product.sku,
name: item.product.name,
priceTotal: currentPrice.value,
currencyCode: currentPrice.currency,
discountAmount: currentDiscount.amount_off,
selectedOptions: selectedOptionsLabels,
quantity
}
CART_UPDATE_ITEM
The CART_UPDATE_ITEM event is fired whenever a user updates a product in their cart.
payload: {
cartId,
sku: cartItem.product.sku,
name: cartItem.product.name,
priceTotal: cartItem.prices.price.value,
currencyCode: cartItem.prices.price.currency,
discountAmount:
cartItem.prices.total_item_discount.value,
selectedOptions: selectedOptionsLabels,
quantity
}
CATEGORY_PAGE_VIEW
The CATEGORY_PAGE_VIEW is fired when a category page is loaded.
payload: {
id: categoryData.categories.items[0].uid,
name: categoryData.categories.items[0].name,
url_key: categoryData.categories.items[0].url_key,
url_path: categoryData.categories.items[0].url_path
}
CMS_PAGE_VIEW
The CMS_PAGE_VIEW event is fired when a CMS page is loaded.
payload: {
url_key: cmsPage.url_key,
title: cmsPage.title
}
MINI_CART_VIEW
The MINI_CART_VIEW event is fired whenever a user opens a mini-cart with the following attributes:
payload: {
cartId: cartId,
products: productList
}
ORDER_CONFIRMATION_PAGE_VIEW
The ORDER_CONFIRMATION_PAGE_VIEW is fired when the order confirmation page is loaded.
payload: {
order_number: placeOrderData.placeOrder.order.order_number,
amount: orderDetailsData.cart.prices,
shipping: shipping,
payment: orderDetailsData.cart.selected_payment_method,
products: orderDetailsData.cart.items
}
PRODUCT_CLICK
The PRODUCT_CLICK event is fired when a user clicks on a Product Card in a Carousel/Slider or Gallery component
The following attributes are sent:
payload: {
sku: item.sku,
priceTotal: finalPrice,
discountAmount,
currencyCode,
selectedOptions: null
}
PRODUCT_IMPRESSION
The PRODUCT_IMPRESSION event is fired when a user views a product tile: a category listing page, search results page, or PageBuilder content, and clicks a product tile.
payload: {
sku: item.sku,
priceTotal: finalPrice,
discountAmount,
currencyCode,
selectedOptions: null
}
PRODUCT_PAGE_VIEW
The PRODUCT_PAGE_VIEW event is fired when a product page is loaded.
payload: {
id: product.id,
name: product.name,
sku: product.sku,
currency_code:
product?.price_range?.maximum_price?.final_price
?.currency,
price_range: {
maximum_price: {
final_price:
product?.price_range?.maximum_price?.final_price
?.value
}
},
url_key: product.url_key
}
SEARCH_REQUEST
The SEARCH_REQUEST event is fired every time user initiates a product search with the attributes that can be mapped to the following schema:
payload: {
query: inputText,
refinements: refinementData,
sort: {
attribute: currentSort.sortAttribute,
order: currentSort.sortDirection
}
}
USER_CREATE_ACCOUNT
The USER_CREATE_ACCOUNT event is fired whenever user successfully creates an account.
payload: {
email: formValues.customer.email,
firstName: formValues.customer.firstName,
lastName: formValues.customer.lastName,
isSubscribed: !!formValues.subscribe
}
USER_SIGN_IN
The USER_SIGN_IN event is fired whenever a user clicks the "Sign In" button.
payload: {
...data.customer
}
USER_SIGN_OUT
The USER_SIGN_OUT event is fired whenever a user clicks "Sign Out" button.
payload: currentUser