To enable this feature, you must ensure that the JS library is included on your front end (either via the Stores > Configuration > Klevu > General Settings > Enable on Frontend configuration value or by including the Core JS script manually in your theme).
Then, navigate to Stores > Configuration > Klevu > Metadata Settings and enable both the Metadata and Sync Successful Orders settings. This setting is configurable at store scope, so you can enable it just for select stores.
Finally, clear your Magento cache.
Once done, order data will start sending automatically when customers complete orders on your website.
Compatibility with Server-Side Order Sync
If you have enabled server-side order sync via Stores > Configuration > Klevu > Data Sync Settings > Enable Order Sync, orders sent from the frontend will also be queued and sent via existing sync methods (eg cron jobs or manually using CLI commands).
Duplicate order data received by Klevu will not be included in your conversion tracking statistics, so both methods can be enabled simultaneously.
Some reasons why frontend order data would not be sent include
- Your site does not use the standard checkout success route at yourwebsite.com/checkout/onepage/success
- Your theme has heavily customized the checkout success page
- The order was placed using Magento’s multishipping option
- The customer did not return to your checkout success page from an external payment gateway
- The customer is using browser extensions which block tracking data
- An application error prevents the checkout success page being displayed to the customer after the order is placed