Skip to content

Event properties ​

The properties Klaviyo Connect sends with its built-in events. Every event name gets the site's Event Prefix, when one is set.

The Setting column names the setting under Event Data in Settings -> Plugins -> Klaviyo Connect that includes the property. Every switch is on by default. A blank cell means the property is always sent.

To add or change properties, see PHP events. In a Klaviyo email, read a property as {{ event.PropertyName }}. For template syntax, see Klaviyo's message personalization reference.

Events ​

EventSent whenvalueunique_id
Started CheckoutA storefront request saves a cart that has an email and line items. Sent once per cart.Order total{number}_started-checkout
Added to CartA storefront request adds a new line item to a cart. Not sent when a line item's quantity changes.Order total{number}_added_{lineItemId}
Updated CartA cart is saved. Not sent for a new cart before its first item, or when the profile and properties match the last Updated Cart for that cart.Order totalA random UUID
Placed OrderAn order is completed, or a past order is sent.Order total{number}
Ordered ProductOnce per line item, with each Placed Order.Line item subtotal{number}_{lineItemId}
Fulfilled OrderAn order moves into a status listed in Fulfilled Order Statuses.Order total{number}_status_{orderHistoryId}
Cancelled OrderAn order moves into a status listed in Cancelled Order Statuses.Order total{number}_status_{orderHistoryId}
{Status} OrderAn order moves into any other status, such as Shipped Order. Not sent for the status a new order starts with.Order total{number}_status_{orderHistoryId}
Refunded OrderA refund transaction succeeds.Refund amount{number}_refund_{transactionId}
Viewed ProductA product page calls craft.klaviyoConnect.viewedProduct().Not sentNot sent

{number} is the order number. The Track Commerce settings turn each live order event on or off. Klaviyo Connect sends an order event only when the order has a valid email.

Event attributes ​

Each order event sends these as attributes of the Klaviyo event.

AttributeNotes
valueThe amount in the events table, as a number.
value_currencyThe order's currency code, such as USD.
unique_idKlaviyo records one event per ID for each profile and metric, so a resend of the same event is ignored.
timeThe order date, for past orders. A form can set it with event[timestamp]. Otherwise Klaviyo uses the time it receives the event.

The properties also include $value, $value_currency and $unique_id when they're set, with the same values.

Order properties ​

Sent with every order event except Ordered Product.

PropertySettingNotes
OrderIDThe order's element ID.
OrderNumber
OrderReference
TotalPrice
TotalQuantity
ItemsOne entry per line item, with the line item properties.
ItemNamesThe ProductName of each line item.
DiscountCodeThe coupon code, or null.
DiscountValueThe order's total discount, as a positive number.
Currency
DateOrderedISO 8601 date, or null for a cart.
CheckoutURLA link that restores the cart on its site. Sent only for carts.
CategoriesSend CategoriesEvery category of every line item, without repeats.
SubtotalSend Pricing DetailThe item subtotal.
ShippingTotalSend Pricing Detail
TaxTotalSend Pricing Detail
ShippingMethodSend Pricing DetailThe shipping method name.
BillingAddressSend AddressesThe address properties, or null.
ShippingAddressSend AddressesThe address properties, or null.
SiteHandleSend Site and StoreThe handle of the site the order was placed on.
StoreHandleSend Site and StoreThe Commerce store's handle.

Added to Cart ​

Added to Cart also sends the line item that was added.

PropertyNotes
AddedItemProductName
AddedItemProductID
AddedItemSKU
AddedItemCategoriesAn empty array when Send Categories is off.
AddedItemImageURL
AddedItemURLThe product URL.
AddedItemPrice
AddedItemQuantity

Order status events ​

Fulfilled Order, Cancelled Order and {Status} Order also send:

PropertyNotes
StatusThe new status name.
ReasonThe message entered with the status change.

Refunded Order ​

PropertyNotes
ReasonThe note on the refund transaction.

Line item properties ​

Each entry in Items, and the properties of each Ordered Product event. Klaviyo Connect does not build properties for custom line items.

PropertySettingNotes
LineItemID
VariantIDThe purchasable's ID.
ProductNameThe product title. For a purchasable without a product, the line item description.
ItemPrice
RowTotalThe line item subtotal.
valueThe line item subtotal. In Ordered Product, this sets the event's value.
Quantity
SKU
OptionsThe line item options.
AdjustmentsEach adjustment's name and formatted amount.
ImageURLThe variant's Variant Image. When Variant Image isn't mapped or the variant's is empty, the product's Product Image. Both are set in Product Type Data Mapping. Left out when neither gives an image.
SalePriceSend Pricing Detail
DiscountSend Pricing Detail
TaxSend Pricing Detail
TotalSend Pricing DetailThe line item total.
ProductIDProducts only. The Catalog Item ID: the product ID by default, or the variant's ID or SKU.
VariantTitleProducts only.
SlugProducts only. The product slug.
ProductURLProducts only.
ProductTypeProducts only. The product type name.
ProductTypeHandleProducts only.
ProductBrandProducts only. From the Brand in Product Type Data Mapping.
CategoriesSend CategoriesProducts only. From the Category in Product Type Data Mapping.

"Products only" properties are sent for Commerce variants, and left out for other purchasables.

Address properties ​

The value of BillingAddress and ShippingAddress.

PropertyNotes
FirstName
LastName
CompanyThe address organization.
Address1
Address2
City
RegionCodeThe administrative area, such as a state code.
Zip
CountryThe country name, in English.
CountryCode

Viewed Product ​

Sent from the shopper's browser, without a value or unique_id. For what the call needs, see track Viewed Product.

PropertySettingNotes
ProductNameThe product title.
ProductIDThe Catalog Item ID: the product ID by default, or the variant's ID or SKU.
VariantID
SKU
URLThe product URL.
ImageURLSame as ImageURL in line item properties, or null.
BrandFrom the Brand in Product Type Data Mapping.
PriceThe variant's sale price.
CompareAtPriceThe variant's regular price, when it is higher than the sale price. Otherwise null.
CategoriesSend CategoriesFrom the Category in Product Type Data Mapping.

The same call sends Klaviyo's trackViewedItem, for Recently Viewed Items in emails. It sends Title, ItemId, Categories, ImageUrl and Url, plus Brand, Price and CompareAtPrice under Metadata.