Skip to main content

ReCharge Integration

So you want to survey your ReCharge customers? Well, you've come to the right place!

Shopify stores using Shopify Checkout

If your ReCharge subscriptions check out through Shopify Checkout, you don't need anything extra. Your survey is shown by the KnoCommerce Shopify integration on the Thank You and Order Status pages. See the Shopify Integration and KnoCommerce & Shopify Extensibility help docs.

Stores using ReCharge Checkout

If you use ReCharge's own checkout, add the KnoCommerce Universal Embed script to your ReCharge Thank You page.

In ReCharge, go to Storefront -> Checkout and scroll down to the Thank You page section. It should look something like this.

Then set up the Custom integration in KnoCommerce to get your API key and Embed Script snippet. Follow the steps in the Universal Embed help doc.

Paste the following into the ReCharge Thank You page script editor and replace the placeholders with your values:

<div id="kno-survey-container"></div>
<script>
window.Kno = {
kno_id: 'REPLACE_WITH_API_KEY',
customer: {
platform: 'CUSTOM',
shop: 'REPLACE_WITH_STORE_DOMAIN',
email: 'REPLACE_WITH_CUSTOMER_EMAIL'
},
order: {
id: '{{id}}',
total_price: REPLACE_WITH_ORDER_TOTAL
},
survey: {
selector: 'div#kno-survey-container'
}
};
</script>
<script src="https://www.knocdn.com/v2/embed.js?id=REPLACE_WITH_ACCOUNT_ID"></script>

  • kno_id: your API key from the Custom integration.

  • shop: your store's domain (for example, mybrand.com).

  • email and total_price: the customer email and order total from your ReCharge order data. Email is required unless you pass a phone number instead. Total price must be a number.

  • script src: replace the whole line with the Embed Script snippet from Settings -> Survey Settings -> Miscellaneous. It should point to knocdn.com/v2/embed.js.

If you have any questions just reach out!

Did this answer your question?