- 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.
- Fix an error that occurs when saving a user due to
klaviyoAvailableGroups
setting being an array.
- Allow tracking events with a timestamp.
- Allow using environment variables for public and private keys in plugin config.
- Use response code for error message instead of relying on an error code in the Klaviyo API response body.
- Removed
Base::getSpecialProperties()
- Removed
confirmOptIn
from add to list code
- Updated Klaviyo List API calls to V2
- Added GDPR consent related fields on the
Profile
model
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
- Fetch the first product image for each line item
- Replaced deprecated
includecss
andincludejs
Twig tags
- 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
- Profile mappings and related events, variables, etc
- 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 withtrack
- Renamed events to align with Klaviyo language (
AddProfilePropertiesEvent
,AddCustomPropertiesEvent
, etc) - Changed
api/update-profile
toapi/track
- Fixed error when adding a user to a Klaviyo list
- Added
addToLists
to Track service - Added docs site
- Order and Line Item events for users to add custom properties onto event bodies
- Profile event to add custom properties to user profiles
- Changed
trackOrder
andgetOrderDetails
visibility.
- Fixed user service events.
- Migrated to Craft 3.