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 metric | Visitor action | Use |
|---|---|---|
TQF_Realtime_ActiveOnSite | Site visit; carries the product viewed when the visit is on a product page | Browse recovery, recent visitor segments |
TQF_Realtime_CartUpdate | Item added to or changed in the cart | Cart recovery |
TQF_Realtime_CheckoutStarted | Checkout started | Checkout recovery |
Every event carries the time of the visitor's action, not the time it was sent.
Properties
| Property | Content |
|---|---|
$event_id | Unique event ID, used by Klaviyo to discard a duplicate |
$value | Event value: product price or cart total |
Name | Name of the main product |
Price, Compare At Price, compare_at_price | Product price and compare-at price |
URL | Product page URL |
ImageURL | Product image URL |
Collections, collections_str | The product's Shopify collections, as a list and as text |
items | Products in the cart or checkout, with their attributes |
items_names, items_names_str | Product names, as a list and as text |
line_price | Cart line price |
cart_total | Cart total |
cart_url | Cart recovery URL |
extra | Additional 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
| Data | Events | Transactional | Delivery |
|---|---|---|---|
| Pages and content viewed | PageView, ViewContent, Search | No | By default |
| Add to cart | AddToCart | No | By default |
| Checkout started | InitiateCheckout | Yes | On request, after acceptance testing |
| Payment info | AddPaymentInfo | Yes | On request, after acceptance testing |
| Paid order | Purchase | Yes | On request, after acceptance testing |
| First order of a subscription | Purchase and Subscribe by default, or Subscribe only on request | Yes | On request, after acceptance testing |
| Recurring subscription order | SubscriptionRenewal | Yes | On request, after acceptance testing |
| Customer lifecycle | NewCustomer, RepeatCustomer, derived from each order | Yes | On request, after acceptance testing |
| In-store orders (Shopify POS) | Purchase, Subscribe or SubscriptionRenewal with action_source = physical_store | Yes | On 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
| Parameter | Content | Use in the destination |
|---|---|---|
event_id | Deduplication ID specific to the event, stable and kept on resend | Match the browser and server copies of the same event |
transaction_id | Shopify transaction ID, on every order event | Match the event with the back-office order |
client_id, user_id | client_id is always qside; user_id carries the merchant's customer ID, when known | Identify 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.