Skip to content

Technical documentation

Configuration

QTrack: dedicated flows in Klaviyo

QTrack feeds dedicated flows, separate from the store's native flows. Native flows stay as they are. This separation shows in Klaviyo the revenue generated by QTrack events alone.

Create the flows

Dedicated flowTrigger (Klaviyo metric)Template
Browse recoveryTQF_Realtime_ActiveOnSiteCopy of the native browse abandonment flow
Cart recoveryTQF_Realtime_CartUpdateCopy of the native abandoned cart flow
Checkout recoveryTQF_Realtime_CheckoutStartedCopy of the native abandoned checkout flow

For each flow:

  1. Clone the matching native flow, with its messages and delays.
  2. Replace its trigger with the QTrack metric from the matching row.
  3. Add the deduplication filter: the profile has not received the matching native flow within the chosen window. A profile already handled by a native flow does not enter the QTrack flow.
  4. Keep the native flow's sending filters: subscription status, exclusions, Smart Sending.
  5. Name the flow with the QTrack prefix so it is easy to find in reports.
  6. Turn the flow on.

Sending filters stay under the store's control: an unsubscribed profile receives no marketing email, whatever event brought it into the flow.

Trigger window

Klaviyo does not trigger a metric-triggered flow when the event arrives 6 hours or more after its timestamp. Every QTrack event carries the time of the visitor's action. The Quantic Factory monitors event delivery time and reports it in the monthly report.

Using events outside the dedicated flows

QTrack metrics are standard Klaviyo metrics: they also work in segments (recent visitors to a collection, open carts) and in tools connected to Klaviyo. A native flow that uses a QTrack metric as its trigger no longer shows QTrack's contribution separately.

Reading the results

LevelWhat it showsWhere
1. Data deliveredRecognized shoppers per day, events sent, delivery timeThe Quantic Factory monthly report
2. Flow resultsRevenue Klaviyo attributes to the QTrack flows, under the account's attribution ruleFlow reports in Klaviyo, included in the monthly report
3. Net liftAdditional orders measured with a holdout group drawn at random at QTrack flow entryRule and threshold agreed in writing before the start, read together

QSide: receiving the stream

Stream format

QSide sends a single stream in the Measurement Protocol format, the same whatever the destination. Each request body takes the form {client_id, user_id, events: [{name, params}]}.

Every event carries a stable deduplication ID (params.event_id). Every order event also carries the Shopify transaction ID (params.transaction_id). Available identity data is normalized and hashed before sending.

Sending through a server-side container

  1. QSide sends its requests as POST JSON to the container's collection endpoint: https://<container host>/mp/collect.
  2. The container's Measurement Protocol client, or a client dedicated to QSide, claims the request.
  3. Mark QSide events (dedicated client or marker parameter) and limit the tags that fire to those agreed for this stream. Other tags carry an exception until their mapping and acceptance testing exist.
  4. In each destination tag, map the deduplication ID and the transaction ID to the field defined by the destination's specification.

For Meta, The Quantic Factory provides a complete specification as a reference: it shows how to map the transaction IDs in an existing Meta tag in the container. For every other destination, the technical owner applies the same logic in the matching tag.

Any tag that hasn't been approved for this stream carries an exception on QSide events (client_id = qside): without it, every QSide event creates an extra user and an extra transaction in the tool that tag feeds.

Sending directly to Meta

The Quantic Factory prepares the sending to Meta's Conversions API, its authentication and its routing. The merchant lists the other browser and server sources and notes the event ID each one uses in Test Events, including Shopify's Facebook & Instagram app. Only one QSide path is active per event and per Dataset.

Account configuration sheet

Before testing, the merchant, the agency and The Quantic Factory fill in one sheet per account. A required field left empty keeps the related event out of production.

FieldContent
Store, domains and marketsWeb and in-store scope
DestinationsMeta Dataset and other destinations, with the inventory of their senders
OwnersThe Quantic Factory, server-side owner, merchant, media agency
Mode per eventContainer or direct; one active QSide path per event and destination
ReceptionFull collection endpoint URL, method, authentication, claiming client
TagsTag template for each destination, version, tags allowed to fire
PermissionsShopify and destination permissions, consent rules
Media measurementOptimization event, custom conversions, audiences
OperationsAcceptable delays, error recovery, monitoring, rollback

Secrets stay in the account's access system; the sheet holds their references, never their values.

Maintenance

Notify the setup owner and The Quantic Factory before any change that affects events: new subscription app, replaced pixel or tag, theme or checkout change, new market, new destination. Replay the affected test cases and record the new version.