Install

Works with Drupal: ^10 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 37.45 KB
MD5: 97469e4352d53c9d2bbc0feb66a5defb
SHA-1: c508cb127997ff024a6af2f4e83a3bd03c7949d4
SHA-256: 075bacacf02333b8fb236aecfc6f15d303552aa7bc936e8404ebcd16694466c0
Download zip 56.48 KB
MD5: ee22e859a9d245625c4ea4508511c37e
SHA-1: 2f96107b2904e6a1a4c81090f94ac8a3da7710cf
SHA-256: fa226fd45afa3255e0069e9bd4240c8edf9f366e9cfbab22f93b190fa38d09cd

Release notes

This release adds email marketing consent, multiple lists per webform, a submission event, support for a secondary Klaviyo account and a Drush backfill command. Existing sites keep their current behavior after upgrading.

New features

Email marketing consent in webform handlers

  • A new Establish email marketing consent setting on the Klaviyo webform handler, with three options: Always, Only if a checkbox field is checked, or Never.
  • When consent applies, profiles are subscribed through Klaviyo's Subscribe Profiles API, so they show as subscribed instead of "Never Subscribed". Lists that use double opt-in send their confirmation email.
  • Never still creates the profile and adds it to lists, and never removes a subscription the person already has.
  • If consent applies but no list does, the person is still subscribed, just without being added to a list.

Multiple lists per webform

  • One handler can now add a profile to any number of Klaviyo lists. Before, it could only use one.
  • Each list has its own condition: always, or only when a chosen checkbox is checked.
  • Adding the same list twice is blocked when you save the handler settings.

"Submitted Webform" event

  • An optional (on by default) custom event called Submitted Webform, sent on every submission. It includes webform_id and webform_title as properties.
  • This lets you build Klaviyo Flows that run for one specific webform, even when several webforms use the same list.

Secondary Klaviyo account

  • You can now enter a second private key on the settings page.
  • A new Klaviyo CRM (Secondary Account) webform handler sends submissions to that second account. It has the same features as the main handler. It doesn't load onsite tracking and doesn't identify visitors in the browser.

Drush command: klaviyo_crm:backfill-subscriptions (alias klaviyo-backfill)

  • Applies a webform's current consent and list settings to its past submissions.
  • Supports --dry-run, --limit and --sids.

Improvements

  • Checkbox, radio and select fields now send their human-readable option labels to Klaviyo, not their machine names.
  • Fields with several values (such as checkboxes) are sent as list-type properties instead of failing.
  • Special characters are no longer double-encoded (for example, & now arrives in Klaviyo as &).
  • The handler summary now shows the consent rule, every configured list and whether the event is sent.
  • The settings form shows clearer messages and only clears all caches when it actually needs to.
  • A complete configuration schema for klaviyo_crm.settings and the handler settings.
  • The README now documents setup, the webform handlers, the Drush command and upgrading.

Upgrading from 1.0.x

  • Run drush updb. Update klaviyo_crm_update_10001 moves each existing handler's list into the new list settings.
  • Existing behavior is kept: existing handlers are set to Never for email marketing consent, so they keep adding people to lists without subscribing them. To start collecting consent, edit each handler and choose Always or a consent checkbox. You can then use the Drush backfill command for past submissions.
  • Existing handlers start sending the "Submitted Webform" event after the upgrade. Uncheck it on a handler to turn it off.
Created by: bsfajardo
Created on: 16 Nov 2026 at 20:12 UTC
Last updated: 16 Nov 2026 at 20:12 UTC
New features

Other releases