Breaking changes
- All of the event calls have been refactored to use objects as parameters instead of individual params
- Variant ID handing in analytics is made more clear. Variant ID is removed from all analytical calls as separate parameter. Variant ID is internal Klevu variable that hasn't got anything to do with source systems variant Id's.
- All events now use POST instead of GET request in order comply with Browser Beacon API.
- Buy event has been updated to use new updated API which makes it much faster and more reliable.
What's Changed
- CORE: Send correct term in case of image search by @nikhil-narayana-klevu in #438
- UI & CORE: Small fixes by @nikhil-narayana-klevu in #445
- CORE: Use POST request and Beacon API for analytics by @rallu in #454
- CORE: Destructure merchandising product click - BREAKING by @rallu in #455
- CORE: New buy() and checkout events by @rallu in #456
- CORE & UI: Implement analytics for search image banners and recommendation image banners by @rallu in #484
Full Changelog: https://github.com/klevultd/frontend-sdk/compare/@klevu/core-3.6.0...@klevu/core-4.0.0