Cherry Seed

How does Klaviyo tracking work?

klaviyo tracking email marketing analytics klaviyo javascript customer profile tracking klaviyo api events

Quick Answer

Klaviyo uses a combination of cookies, JavaScript, and email click parameters to identify and track visitors. The __kla_id cookie tracks site visitors, while the _kx parameter in email links identifies subscribers who click through to your site. Klaviyo captures events like Viewed Product, Added to Cart, and Placed Order. However, browser cookies expire after 24 hours on Safari/iOS, which is why Klaviyo introduced Extended ID — a first-party identity graph that extends cookie life up to 1 year.

Full Answer

Klaviyo tracks customer behavior across three layers: on-site browsing (JavaScript), transactional events (API/integrations), and email engagement (opens, clicks). Unlike advertising platforms, Klaviyo's tracking builds unified customer profiles for email and SMS marketing. On-Site JavaScript Tracking The Klaviyo JavaScript snippet tracks page views, product views, cart additions, and custom events. It captures:

  • Active on Site
  • Session duration and page browsing
  • Viewed Product
  • SKU, price, variant details
  • Added to Cart
  • Product data, timestamp, cart value
  • Started Checkout
  • Cart abandonment trigger point This data creates real-time behavioral segments ("viewed product but didn't purchase in 24 hours") and triggers automated flows. E-commerce Platform Integrations Native integrations with WooCommerce, Shopify, BigCommerce, and Magento automatically sync:
  • Order data (purchases, refunds, fulfillment status)
  • Customer information (name, email, phone, address)
  • Product catalog (SKUs, images, pricing)
  • Historical transaction data (on initial connection) These integrations run server-side through...

Sources

Programmatic Access

GET https://seresa.io/wp-json/cherry-tree-by-seresa/v1/seeds/191

Cite This Answer

Cherry Tree by Seresa - https://seresa.io/seed/klaviyo-email/klaviyo-tracking-explained