Bonusway

Learn how to attach Bonusway to Finqu online store.

Written By Finqu Tuki

Updated at April 21st, 2022

If you're using Bonusway, they'll provide you with an iframe code for your online store's thank-you page. It looks like this:

<!-- Offer Conversion: Kauppasi nimi --> <iframe src=” https://tracking.bonusway.com/aff_l?offer_id=OFFER_ID&adv_sub=SUB_ID&amount=AMOUNT ” scrolling=“no” frameborder=“0" width=“1” height=“1"></iframe> <!-- // End Offer Conversion —>

Editing the code for Finqu

In a Finqu online store, you can add only javascript code to the checkout page. Therefore, you need to convert the iframe-HTML-code into javascript before attaching it. We've made the changes on your behalf, and you can use the code below.

Note: Before adding the code, replace the OFFER_ID section with your own OFFER_ID. You can find it in the iframe code that Bonusway gave you.

(function() { var iframe = document.createElement('iframe'); iframe.src = 'https://tracking.bonusway.com/aff_l?offer_id=OFFER_ID&adv_sub={{checkout.order.id}}&amount={{checkout.order.total}}'; iframe.setAttribute('scrolling', 'no'); iframe.setAttribute('frameborder', 0); iframe.setAttribute('width', 1); iframe.setAttribute('height', 1); document.getElementsByTagName('body')[0].appendChild(iframe); })();

Adding the code to the checkout page

  1. Go to Settings > Checkout.

  2. Click Add on the Javascript section.

  3. Choose Thank-you-page as the target page.

  4. Click Confirm.

  5. A new field will appear on the page to add the Bonusway code.

  6. After the code is added, click Save.