The JavaScript: Purchase Script - Confirmation Script

The Purchase Script enables the Size Advisor algorithm to learn and enhance the recommendations it gives. The Purchase Script is a two script combination of a cart and confirmation script. Here are instructions on the Confirmation Script:

The Confirmation Script needs to be implemented on the order confirmation page that is only reachable after the payment was made.

Click here to access the Confirmation Script


Check if the following requirements are met:

  1. The Confirmation Script is executed after the order was paid.
  2. If you already sent an order number in the cart script, make sure to provide the same one here.
  3. You must provide the same order number in the purchase & return data feeds.

Here is how to test if it has been set up correctly:

  1. Make sure you implemented the cart tacking script first.
  2. Test if everything was set up by executing a test purchase.
  3. On the order confirmation page, check in the browser's console if there is a call to containing the shop id, order number and the sid.
  4. The response should be {"success" : true}.
  5. If the response is {"success": false} or the server responds with status code 500, check if everything is set up correctly.


Need help? Contact us at