Version 4.0.11

June 29, 2022

Fixed

  • Fixed issue with use of mixed return types on PHP 7.x
  • Fixed deprecated use of parseEnv()
  • Fixed formatting of this changelog

Version 4.0.10

June 13, 2022

Added

  • Added a service method to retrieve a Klaviyo Person ID using an email address
  • Added a service method to update a Klaviyo profile
  • Added a controller method for updating a Klaviyo profile

Version 4.0.9

June 7, 2022

Fixed

  • Fixes issue in Lists field type where list selection isn't saved, or previous setting is nulled, if the entry is first saved by an automatic draft.

Added

  • The plugin now works with Craft 4

Version 4.0.8

October 21, 2021

Fixed

  • Fixes error with guest checkouts when custom product image field doesn't exist on products or variants

Version 4.0.7

September 27, 2021

Added

  • Klaviyo Connect will now use a variants product image if present before using the products image (#67)

Version 4.0.6

August 23, 2021

Added

  • Added support for Guzzle 7.2

Version 4.0.5

July 16, 2021

Added

  • Added the useSubscribeEndpoint parameter to the klaviyoconnect/api/track action to make it possible to use Klaviyo’s subscribe endpoint instead of members, which has the benefit of respecting the double opt-in setting of the list

Version 4.0.4

January 11, 2021

Fixed

  • Fixes error when updating cart without a billing address

Version 4.0.3

November 23, 2020

Added

  • Passes customer billing name to Klaviyo when the user completes an order as guest

Version 4.0.2

October 2, 2020

Fixed

  • Value of Product Type is now the name not the full object

Version 4.0.1

October 1, 2020

Added

  • Product Type with line item data sent with events

Fixed

  • Value on Ordered Product events

Version 4.0.0

September 29, 2020

Added

  • Add tracking for order status changes
  • Add tracking for refund transactions
  • Add ability to disable tracking for specific events
  • Add ability to push historical Commerce orders to Klaviyo

Updated

  • Fix bug where events triggered by admins cause admin account to get tracked in Klaviyo.
  • Fix bug with line item formatting on events where they would show up as strings instead of arrays.

Version 3.2.0

September 18, 2020

Updated

  • Merged #27
  • Fix line items when passed as a string (such as through hidden fields in Twig) to json_decode the string before sending to Klaviyo.

Version 3.1.3

January 24, 2020

Updated

  • Fix an error that occurs when saving a user due to klaviyoAvailableGroups setting being an array.

Version 3.1.2

December 4, 2019

Updated

  • Allow tracking events with a timestamp.
  • Allow using environment variables for public and private keys in plugin config.

Version 3.1.1

July 29, 2019

Updated

  • Use response code for error message instead of relying on an error code in the Klaviyo API response body.

Version 3.1.0

May 20, 2019

Removed

  • Removed Base::getSpecialProperties()
  • Removed confirmOptIn from add to list code

Updated

  • Updated Klaviyo List API calls to V2

Added

  • Added GDPR consent related fields on the Profile model

Version 3.0.4

April 29, 2019

Updated

  • Track::createProfile is now protected
  • Fix an error when a line item's purchasable has no Product attached
  • Users can now listen to the Track::ADD_LINE_ITEM_CUSTOM_PROPERTIES event for any line item regardless whether it has a Product attached or not

Version 3.0.3

April 4, 2019

Updated

  • Fetch the first product image for each line item

Version 3.0.2

April 4, 2019

Updated

  • Replaced deprecated includecss and includejs Twig tags

Version 3.0.1

April 1, 2019

Updated

  • Fixed profileMappings on Settings page
  • Ensure Craft Commerce is installed and enabled before adding event listeners
  • Check for Craft Commerce before tracking order events
  • Check for Craft Commerce when calling the restore cart action

Version 3.0.0

March 28, 2019

Removed

  • Profile mappings and related events, variables, etc

Updated

  • Restructured data sent to Klaviyo
  • Custom properties are added to the root of models instead of to the $extra property
  • User profile mapping is based on logged in user and data sent with the profile[] form parameter
  • Replaced events service with track
  • Renamed events to align with Klaviyo language (AddProfilePropertiesEvent, AddCustomPropertiesEvent, etc)
  • Changed api/update-profile to api/track
  • Fixed error when adding a user to a Klaviyo list
  • Added addToLists to Track service
  • Added docs site

Added

  • Order and Line Item events for users to add custom properties onto event bodies
  • Profile event to add custom properties to user profiles

2.0.6 - 2019-02-28

  • Changed trackOrder and getOrderDetails visibility.

Version 2.0.1

September 19, 2018
  • Fixed user service events.

Version 2.0.0

June 26, 2018
  • Migrated to Craft 3.