Zupli Docs
For developers and agencies

Tracking and attribution

How Zupli measures carts and orders with a Shopify web pixel and order notifications, and exactly what it stores in the shopper's browser.

2 min readUpdated

On this page
  1. What is captured
  2. How orders are attributed
  3. What’s stored in the shopper’s browser
  4. Practical notes

Zupli’s analytics and A/B test results come from a Shopify web pixel, which runs in Shopify’s sandboxed pixel environment rather than as a script in your theme, plus Shopify’s order notifications.

What is captured

Event Where it comes from
Cart changes The Zupli drawer, each time the cart updates
Checkout started The Zupli drawer’s checkout button, and Shopify’s own checkout-started event
Purchases Shopify’s order notification when an order is created

Each event carries the context of which Zupli campaigns the shopper saw and how far they got toward each milestone.

How orders are attributed

  1. While the shopper browses, the pixel remembers the campaigns they saw and their milestone progress in the browser, so a later checkout can be linked to campaigns seen on earlier pages.
  2. When the order is created, Shopify notifies Zupli, and the order is linked back to its checkout and the campaigns behind it.
  3. The dashboard builds the funnel and revenue numbers from those events.

What’s stored in the shopper’s browser

Name Type Purpose
zupli:last_campaigns Local storage Campaigns the shopper saw
zupli:last_campaign_progress Local storage Their milestone progress
zupli:last_cart_token Local storage Links events to the cart
zupli:last_ab Local storage The A/B variant, for attribution
optimaio_ab_assign Local storage The A/B variant the shopper was given, so they keep it
optimaio_visitor_id Cookie, about a year A random visitor ID for A/B assignment
optimaio_ab_session_id Cookie The current session, for A/B results
optimaio_traffic_source Cookie The first-touch source, for the By channel insight

None of these hold names, emails or payment details. List them in your store’s cookie or privacy notice if your region requires it.

Practical notes

  • Results aren’t instant. Events are processed in the background, so allow a short delay before a test order appears.
  • Only Zupli carts count. Orders that never went through the Zupli cart, such as draft orders or some express checkouts, aren’t part of Zupli’s funnel.
  • Numbers differ from Shopify’s reports because Zupli counts cart sessions and Shopify counts orders. See Why Zupli’s numbers differ.