Cherry Seed

How do I sync events to Klaviyo server-side?

klaviyo track api klaviyo server side sync klaviyo api integration klaviyo wordpress integration klaviyo event tracking klaviyo identify api

Quick Answer

Use Klaviyo Track API (POST to https://a.klaviyo.com/api/track) with event name, customer email, properties, and timestamp. Identify API updates profile fields. WordPress: Use WooCommerce hooks + wp_remote_post(). Deduplication automatic (same email + event + timestamp within 10 seconds). Authentication: Public API key (6-character, safe for client/server). Monitor HTTP 200 responses for success.

Full Answer

Syncing events to Klaviyo server-side uses the Track API (for events) and Identify API (for profile updates). WordPress implementation leverages WooCommerce hooks and wp_remote_post() for reliable, automatic event streaming. Klaviyo Track API Endpoint Payload Structure Required fields:

  • token
  • Public API key (6-character alphanumeric)
  • event
  • Event name (custom or Klaviyo standard)
  • customer_properties.$email
  • Email to identify customer profile Optional fields:
  • properties
  • Event metadata (product details, revenue, custom data)
  • time
  • Unix timestamp (defaults to current time if omitted) Example Payload WordPress/WooCommerce Implementation Track Order Completion Use woocommerce_checkout_order_processed hook: Track Subscription Events Track subscription status changes: Track Custom Events Example: Product review submitted Klaviyo Identify API Update Profile Properties (Without Event) Endpoint: Use case: Update customer profile fields without tracking an event. Example: Update customer tier Example: Calculate and update Lifetime Value Authentication Finding Your Public API Key Klaviyo account: 1. Navigate to Settings...

Sources

Programmatic Access

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

Cite This Answer

Cherry Tree by Seresa - https://seresa.io/seed/klaviyo-email/klaviyo-event-sync