Skip to content

Technical documentation

Events and properties

QTrack: metrics sent to Klaviyo

QTrack sends its events to Klaviyo on profiles that already exist in the store's account. QTrack creates no profiles and sends no messages: sending is governed by the store's flows and filters.

Klaviyo metricVisitor actionUse
TQF_Realtime_ActiveOnSiteSite visit; carries the product viewed when the visit is on a product pageBrowse recovery, recent visitor segments
TQF_Realtime_CartUpdateItem added to or changed in the cartCart recovery
TQF_Realtime_CheckoutStartedCheckout startedCheckout recovery

Every event carries the time of the visitor's action, not the time it was sent.

Properties

PropertyContent
$event_idUnique event ID, used by Klaviyo to discard a duplicate
$valueEvent value: product price or cart total
NameName of the main product
Price, Compare At Price, compare_at_priceProduct price and compare-at price
URLProduct page URL
ImageURLProduct image URL
Collections, collections_strThe product's Shopify collections, as a list and as text
itemsProducts in the cart or checkout, with their attributes
items_names, items_names_strProduct names, as a list and as text
line_priceCart line price
cart_totalCart total
cart_urlCart recovery URL
extraAdditional event data

Properties depend on the action: a visit without a product carries no product properties. The exact list an account receives is shown in Klaviyo, on each metric's page or in the details of an event in the activity feed.

Using properties in messages

Properties are inserted into email templates with Klaviyo syntax, for example {{ event.Name }}, {{ event.URL }}, {{ event.ImageURL }} or {{ event.cart_url }}. For cart products, a dynamic block loops over event.items.

QSide: events sent to destinations

DataEventsTransactionalDelivery
Pages and content viewedPageView, ViewContent, SearchNoBy default
Add to cartAddToCartNoBy default
Checkout startedInitiateCheckoutYesOn request, after acceptance testing
Payment infoAddPaymentInfoYesOn request, after acceptance testing
Paid orderPurchaseYesOn request, after acceptance testing
First order of a subscriptionPurchase and Subscribe by default, or Subscribe only on requestYesOn request, after acceptance testing
Recurring subscription orderSubscriptionRenewalYesOn request, after acceptance testing
Customer lifecycleNewCustomer, RepeatCustomer, derived from each orderYesOn request, after acceptance testing
In-store orders (Shopify POS)Purchase, Subscribe or SubscriptionRenewal with action_source = physical_storeYesOn request, after acceptance testing

Orders come from the Shopify back office: a paid order is sent even when the browser did not see it.

By default, the first order of a subscription is sent as Purchase and as Subscribe, with the same ID: it counts in purchases like a one-off order. A recurring order is sent as SubscriptionRenewal only.

IDs

ParameterContentUse in the destination
event_idDeduplication ID specific to the event, stable and kept on resendMatch the browser and server copies of the same event
transaction_idShopify transaction ID, on every order eventMatch the event with the back-office order
client_id, user_idclient_id is always qside; user_id carries the merchant's customer ID, when knownIdentify QSide events in the container, as a trigger or as an exception on tags, and tie the event to the customer

Deduplication happens in the destination, on name, ID and time window. Meta matches the name and ID of the same event within 48 hours of the first copy received.

Identity and context data

Each event carries the identity data available for the order or the visitor, normalized and hashed, and its context data (URL, user agent) when available. QSide never makes up missing data: an event without one of these fields follows the rule written in the account specification.

Timestamps

Each event is timestamped at the time it happened and sent shortly after. QSide does not send an event outside its sending window, nor a resend outside the destination's deduplication window.