Skip to main content

Track affiliate sales on any website

Add the LinkQuill script to your site, report each sale from your thank-you page or your server, and credit affiliate links and coupon codes on any checkout.

About 20 minutes

Which setup do you need?

  • Shopify: use the Shopify app instead. See the Shopify guide.
  • WooCommerce: use the WordPress plugin. See the WooCommerce guide.
  • Wix, Square or your own Stripe account: connect it from Integrations in LinkQuill.
  • Anything else, including custom checkouts: follow this guide.

Step 1: add the script to every page

For visitors who must agree to cookies first (EU and UK), add data-consent="required" to the script tag and call window.LinkQuill.grantConsent() when they accept.

  1. 1In LinkQuill, go to Integrations, then JavaScript snippet.
  2. 2Copy both script tags. The first lets sales be reported before the main script finishes loading.
  3. 3Paste them into the <head> of every page of your site.

Step 2: report each sale

On your order confirmation page, call the conversion code shown on the JavaScript snippet page with the order ID and the subtotal (products after discounts, before shipping and tax). Pass the coupon code if one was used.

A sale reported only from the browser, with no affiliate click behind it, is held for you to review. Browser reports can be blocked or faked.

Recommended: report sales from your server too

Send each paid order to POST /api/v1/ext/conversions with an API key (Starter plan and above). Include the visitor’s _lq_vid cookie as visitorId and any coupon code. LinkQuill trusts the amount from your server, and the same order ID is never counted twice.

Refunds go to the same API so commission is reduced automatically. Full details are in the API documentation.

Test it

  1. 1Open an affiliate’s referral link in a private window.
  2. 2Place an order.
  3. 3The sale shows under Conversions, credited to that affiliate.