klaviyo / magento2-klaviyo

37 stars 51 forks source link

Start checkout event sent without data consent #242

Open rafaelstz opened 1 year ago

rafaelstz commented 1 year ago

Environment details

PHP version: 8.1 Magento version: 2.4.5 + PWA Studio Klaviyo extension version: Latest Anything else that would help a developer reproduce the bug?

Steps to reproduce

Go to the checkout page and fulfill all the initial forms with personal information, when you go ahead to the payment details the data was sent to Klaviyo without any consent.

Expected result

The event being removed from the backend and add to the frontend via JS as the other events that depends on data consent.

Actual result

Data is sent when customers start the checkout even without data consent or any Klaviyo JS loaded.

Additional information

This is the Observer that trigger this event. https://github.com/klaviyo/magento2-klaviyo/blob/master/etc/events.xml#L3