Skip to main content

Klaviyo Integration

The Dealers Site uses Klaviyo (plugins/klaviyo/) for email and SMS marketing automation, sending targeted communications to dealers based on their behaviour and account status.


Features Used

  • Dealer onboarding sequences — automated welcome emails when a new account is approved
  • Abandoned cart recovery — email reminders for dealers who start checkout but don't complete
  • Order confirmation — supplementary marketing content alongside WooCommerce transactional emails
  • Pricing update alerts — notify dealers when significant market moves affect spot prices
  • Re-engagement campaigns — for dealers who haven't ordered in a defined period

Theme Integration

The KlaviyoCreateProfile class (inc/class-klaviyo-create-profile.php) in the Suma Elementor theme hooks into WordPress user registration to create a Klaviyo profile immediately:

add_action( 'user_register', [ $this, 'create_klaviyo_profile' ] );

This ensures new dealers are in the Klaviyo contact list from the moment of signup, even before their first order.


Configuration

Klaviyo API keys and list IDs are configured via the Klaviyo plugin settings in WP Admin → Klaviyo → Settings.

Key settings:

SettingDescription
API KeyPrivate Klaviyo API key for server-side calls
Public API KeyPublic key for client-side JavaScript tracking
List IDThe Klaviyo list to subscribe new dealers to
Custom PropertiesMap WooCommerce order/user fields to Klaviyo profile properties