Edit in GitHubLog an issue

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

The CART_ADD_ITEM event is fired whenever a user adds a product to their cart.

Copied to your clipboard
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.

Copied to your clipboard
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.

Copied to your clipboard
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 update a product in their cart.

Copied to your clipboard
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.

Copied to your clipboard
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.

Copied to your clipboard
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:

Copied to your clipboard
payload: {
cartId: cartId,
products: productList
}

ORDER_CONFIRMATION_PAGE_VIEW

The ORDER_CONFIRMATION_PAGE_VIEW is fired when the order confirmation page is loaded.

Copied to your clipboard
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:

Copied to your clipboard
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.

Copied to your clipboard
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.

Copied to your clipboard
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:

Copied to your clipboard
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.

Copied to your clipboard
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.

Copied to your clipboard
payload: {
...data.customer
}

USER_SIGN_OUT

The USER_SIGN_OUT event is fired whenever a user clicks "Sign Out" button.

Copied to your clipboard
payload: currentUser
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.