Showing

Why is my coupon code not tracking sales?

A coupon only credits an affiliate when LinkJolt holds a registration that matches the discount data your payment processor sends with that order. The usual causes are a code registered on one side only, a Stripe promotion code id that was never entered, a Paddle discount id left blank, a Lemon Squeezy code with no API key saved, or a code registered on the wrong campaign or with a test key.

4 min read
Updated Oct 28, 2026

A coupon only credits an affiliate when LinkJolt holds a registration that matches the discount data your payment processor sends with that order. The match is exact, so a code that exists on one side only, or a registration pointing at the wrong campaign, records as a direct sale with nobody credited. Work through these checks in order.

1. The code has to exist in two places

Registering a code in LinkJolt does not create the discount in your processor, and creating a discount in Stripe does not tell LinkJolt who to credit. You need both: a working discount in Stripe, Paddle, Polar, Creem, Lemon Squeezy or App Store Connect, and a registration on the Coupons tab of the Campaigns page, tying that exact code to one affiliate on one campaign.

Two routes are the exception. Both work once the Coupons tab says new codes are created in your Stripe, your Polar or your Creem: use "Set up with Stripe" there, or connect Polar or Creem under Integrations. Choosing "Create it in my Stripe for me" (or Polar, or Creem) in the Create coupon dialog creates that one code in that account and registers it here in one step, with the matching ids already filled in. The "Automatic coupon codes" switch, in a campaign's own settings, does the same for every affiliate as they are approved, so on a campaign with that switch on you do not add those codes by hand.

2. Register the value your processor actually sends

Stripe and Paddle do not send us the code the customer typed, so for them the registration has to hold the identifier that does arrive.

  1. Stripe. If customers type a promotion code, paste its id into the "Stripe Promotion Code ID" field when you register. It starts with promo_ and is on the coupon's page in Stripe. If your own checkout applies the coupon and customers type nothing, LinkJolt matches the Stripe coupon's own id instead, so make the coupon id in Stripe identical to the code you register.
  2. Paddle. Paddle sends the discount id, starting with dsc_, and never the code, so the Paddle Discount ID field is required.
  3. Polar. Polar sends the code itself along with the discount's id, and LinkJolt matches either, so registering the code is enough and the Polar Discount ID field is optional. Capital letters do not matter.
  4. Creem. Creem sends the code along with the discount's id, starting with dis_, and LinkJolt matches either, so registering the code is enough. Fill in the Creem Discount ID too if you renamed the code in Creem.
  5. Lemon Squeezy. The webhook names no code at all, so LinkJolt asks Lemon Squeezy which code the order used, with an API key you save under Integrations, on the Payment Links tab. Register the code as customers type it. Without the key, with a key for a different store, or with a test mode key on a live order, no Lemon Squeezy code is credited.
  6. Apple. Matched on the offer identifier from App Store Connect. This one is case sensitive, so type it exactly.

Register a Stripe promotion code without its promo_ id, on a coupon whose Stripe id is not the code, and the order carries nothing we can match. Every redemption is credited to nobody, and that commission stays lost until you fix the registration.

3. Right campaign, right affiliate, right brand

Each registration points at one campaign and one affiliate, and the sale is credited under that campaign, so the wrong campaign means the wrong commission terms. Also confirm the campaign is active, that the affiliate is not rejected or suspended on it, and, if you run several brands, that the campaign belongs to the brand whose payment account sent the sale.

4. Codes registered with a test key are ignored

A coupon created with a test mode API key, the lj_pk_test_ prefix, is tagged as test data and left out of every live lookup. The coupon list does not label these, so if a code was added by a script and never attributes, register it again with a live key.

Four things that are not faults

  • A tracking link beats a coupon. If the customer arrived through an affiliate link, that link is credited even when a code was applied at checkout.
  • Registering a code does not reattribute earlier orders. Register codes before they go out, and contact support if you need older sales looked at.
  • Coupon matching runs on Stripe Checkout, Paddle, Polar, Creem, Lemon Squeezy and Apple offer codes. Server side Stripe charges and sales through the WooCommerce plugin carry no discount data, and Gumroad and GoPay codes are not read, so those need a tracking link.
  • The Uses column counts every sale for that affiliate on that campaign since the code was registered, not only coupon redemptions.

If link based sales are missing too, this is not a coupon problem. See "Why is an affiliate conversion not showing up?" and check your webhook first.

Watch how it is done

Stripe Discount Codes for Affiliates: Track Sales With No Code (1:37)

Plumquote is a demo account made for this tutorial.

Watch on YouTube
Read the transcript

Pick discount codes 0:00

This sale came through a discount code at Stripe checkout, and LinkJolt credited it to the affiliate who owns the code. Nothing was added to the website. Here's the setup.

In LinkJolt, open Integrations and connect Stripe on the Stripe tab. Then, under How do your customers pay, pick Discount codes only.

Affiliates share a code instead of a link. There's nothing to add to your site: LinkJolt matches each code to its affiliate when a customer uses it.

Because Stripe is connected, you don't make the codes in Stripe yourself. LinkJolt creates them in your Stripe, with the discount you pick.

A code for every affiliate 0:37

Open your campaign and edit it. Switch on a coupon code for every affiliate, and set the discount: ten percent off the first payment.

Saving makes a Stripe code for every affiliate already on the campaign, and everyone you approve later gets one too.

Here's Leo's code, named after him and created in Plumquote's Stripe. He shares it with his audience.

The customer uses the code 1:03

A customer enters the code at Stripe checkout. Stripe tells LinkJolt which code was used.

And the sale is credited to Leo: thirteen fifty paid after the discount, and two seventy in commission, waiting for your approval.

Payment Links: allow promotion codes 1:18

Selling through Stripe Payment Links? Edit the link in Stripe and switch on Allow promotion codes, or customers have nowhere to type the code.

That's the setup. Try LinkJolt free for seven days at linkjolt.io.

Start your affiliate program

Launch in minutes with 0% platform fees. 7-day free trial, cancel anytime.