How to enable webhooks for Magento 2
Estimated 2 minute read
|
Updated Aug 6, 2025, 12:00 AM EST
Table of contents
You will learn
Learn how to enable Klaviyo webhooks, which allow your Magento 2 integration to sync catalog product removals in real time and enable consent at checkout.
Before you begin
Product deletion webhooks require version 2.0.0 or later of the Klaviyo Magento 2 extension. If you have not already enabled your Magento 2 integration, you will need to complete the setup steps outlined in the Magento 2 Integration guide, which also includes instructions on enabling Klaviyo webhooks.
To collect consent at checkout, also complete the consent-at-checkout setup instructions in the Magento 2 integration guide. Enabling webhooks alone does not configure your checkout consent settings.
Enable webhooks
- Log in to your Magento 2 account and navigate to Stores > Configuration from the admin dashboard.
- Click on Klaviyo and select the Webhooks tab.


- Create a webhook secret and enter it into the corresponding Webhook Secret field. The webhook secret is a key that Klaviyo will use for validation. This secret can be anything you choose, but we recommend creating a secure string of letters and numbers. Magento will hide your webhook secret with asterisks for security purposes, so be careful to enter it correctly. If you are using a multi-store integration, the webhook secret in this field should be entered in your default configuration, and the same secret will be used as validation for each store configuration. The webhook secret should only be added to the default config and should not be added per store.
- Next to Use Product Delete Webhook? select Yes from the dropdown options. The Product Delete webhook allows the integration to remove products that you have deleted in Magento 2 from the catalog in Klaviyo.
- Click Save Config to complete the setup. Your Magento 2 integration will now remove deleted products from the catalog in real time.
Additional resources
Learn how to integrate Klaviyo with your Magento 2 CE or EE store. You'll need to install the Klaviyo extension in Magento, configure the extension and set up OAuth, then enable the integration in Klaviyo. This guide covers all required integration steps, as well as how to confirm your historical data sync is successful. - Magento 2 data reference
Learn what data Klaviyo imports from your Magento 2 store when you integrate the two platforms. Klaviyo's integration with Magento 2 pulls in all of the historical data in your Magento 2 store with the initial historic sync. Once enabled the integration will also begin to sync order and customer data every 30 minutes. Examples of this data include the information associated with past placed orders, fulfilled orders, etc.
Was this article helpful?
YesNo
Use this form only for article feedback. Learn how to contact support.
Explore more from Klaviyo
Community
Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.
Partners
Hire a Klaviyo-certified expert to help you with a specific task, or for ongoing marketing management.
Support
Access support through your account.
Email support (free trial and paid accounts) Available 24/7
Chat/virtual assistance Availability varies by location and plan type
