klaviyo / magento2-klaviyo

37 stars 51 forks source link

TP156258: Switch from _learnq to klaviyo object in javascript #227

Closed award28 closed 1 year ago

award28 commented 1 year ago

Description

Updated the legacy _learnq js object to the new klaviyo js object.

Manual Testing Steps

  1. Validated the klaviyo object is available when the klaviyo.js script is installed.

Pre-Submission Checklist:

klaviyobot commented 1 year ago

https://klaviyo.tpondemand.com/entity/156258

award28 commented 1 year ago

I'm not going to create a release just for this change - it can go out with the next scheduled release.

toddbc commented 1 year ago

klaviyo.isIdentified() returns a promise so I think this introduces some issues. _learnq.isIdentified() did not return a promise.

cykolln commented 1 year ago

klaviyo.isIdentified() returns a promise so I think this introduces some issues. _learnq.isIdentified() did not return a promise.

@toddbc thank you for raising this - we are rolling this change back with a plan to fix and include it in a future release