The #1 Humanized Marketing Platform

Step 2 - Checkout questionnaire integration



The next step in the process is the checkout integration. At the end of this step, you will be able to collect feedback from customers, right when they finish the checkout process. 

Important: The integration steps mentioned below should be made every time a customer finishes the checkout process and the code should be loaded on the corresponding checkout success page.

First, you should create a unique authentication token by using the YOUR_AUTH_KEY variable of the website (you may find your auth key in e-satisfaction dashboard under the section Settings --> Integration Guidelines)

<!-- generates the token, you have to get the content --> https://food.e-satisfaction.gr/miniquestionnaire/genkey.php?site_auth==YOUR_AUTH_KEY 

Next, you must insert the following code under the form element you want the questionnaire to be displayed.

<div class="esatisf-form"> <!-- here the questionnaire will append --> </div> 

To validate correct completion of this process, you should proceed and make a test order on the website. If the integration has been completed correctly, the checkout questionnaire should be displayed in the thank you page, where you selected it to be displayed. Important: It is highly recommended to place the checkout questionnaire in an element that is positioned relatively high and definitely above the fold. A checkout questionnaire that is displayed right under the header section of the website is expected to be filled by significantly more customers. An average response rate for high-placed checkout questionnaires is 25%.

Finally, in a javascript tag that will be placed in the footer of the website, the following code should be inserted. This code is used to push the responses that the customer provided, alongside with the order id and the email of the customer where after sales questionnaires will be sent.

var _esatisf = _esatisf || []; _esatisf.push(['_responder', '{$order_id}']); _esatisf.push(['_token', '{$token}']); //token that is being generated in the beginning of this step _esatisf.push(['_email', '{$email}']); //e-mail of the customer who made the purchase _esatisf.push(['_delivery', '{$delivery}']); _esatisf.push(['_store', '{$store}']); _esatisf.push(['_showQuestionnaire', '.esatisf-form']);
Was this article helpful?
0 out of 0 found this helpful