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_processedhook: 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...
