Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Promo code from the ad not working: how to find and fix it

PRF-256High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Your ad, email or landing page promises a discount such as SPRING20. The visitor reaches checkout, enters the code and sees an error like "Invalid code" or "Code not applicable", or the discount silently does nothing. The offer you paid to advertise does not work.

Why it costs you leads or sales

Checkout completions from ad visitorsExample numbers
Checkout completions from ad visitors (example)Code works: 60 %; Code rejected: 20 %023466020Code worksCode rejected%

Example: illustrative numbers only. Share of ad visitors at checkout who finish an order, with a working code versus a rejected code.

Where the promo journey breaks
  1. Ad clickAd promises code SPRING20
  2. Landing pageProduct page loads
  3. Checkout codeCode rejected or ignored
  4. PaymentVisitor leaves
  5. Purchase trackedNo conversion

The visitor does everything right until the code is rejected.

How to check if your site has it

Manual promo code test
  • Click your live ad or the exact tracking URL, in a private window.
  • Copy the code from the ad text itself and paste it, so typos in the ad show up.
  • Try it on the advertised product, then on a different one.
  • Try it with a basket below and above any minimum spend.
  • Try it as a new customer and, if relevant, with a country or shipping method the ad targets.
  • Check the order total actually drops, not just that no error shows.
  • Repeat on mobile.
Common causes and what you see
CauseWhat the shopper seesWhere to look
Typo or case mismatchInvalid codeAd copy versus code in your store
Expired or not yet activeCode expired or invalidStart and end dates and time zone
Usage limit reachedCode invalidTotal or per-customer usage limit
Product or collection rulesNot applicable to itemsEligible products, collections, categories
Minimum spend or quantityRequirements not metMinimum purchase setting
Clashes with another discount or sale priceCode ignoredCombination and exclude-sale-items settings
Link or redirect drops the codeField empty at checkoutAuto-apply URL, redirects, cached pages

How to fix it

Fix a failing ad promo code
  1. Match the ad to the code

    Copy the code from your store into the ad, not the other way round. Avoid look-alike characters such as O and 0.

  2. Check dates and limits

    Confirm the start and end dates, the time zone, and that usage limits are not already used up.

  3. Loosen the rules to match the offer

    Make sure eligible products, minimum spend and customer eligibility match what the ad actually says.

  4. Carry the code through the link

    Use an auto-apply link where possible so shoppers need not type anything. Make sure redirects keep the query string.

  5. Retest and keep a record

    Run the manual test again and note the date, so you know when it last worked.

Platform specifics
  1. Review the discount

    In Admin go to Discounts, open the code and check Active dates, Minimum purchase requirements, Customer eligibility, Usage limits and Combinations.

  2. Use a discount link

    Share https://yourstore.com/discount/SPRING20?redirect=/products/your-product so the code is applied to the cart automatically.

Keep a promo code from the URL through the visitjavascript
const params = new URLSearchParams(window.location.search);
const promo = params.get('promo');
if (promo) {
  sessionStorage.setItem('promo', promo.trim());
}
// At checkout, read sessionStorage.getItem('promo') and apply it server-side.

How to confirm it's fixed

Promo journey

Before

  • Code typed from ad is rejected
  • Rules exclude the advertised product
  • Link drops the code on redirect

After

  • Code matches the ad and is active
  • Rules match the offer
  • Auto-apply link keeps the code to checkout

How to prevent it happening again

Before every campaign
  • Test each code from the live ad link before launch.
  • Set the end date after the campaign end, in the right time zone.
  • Set usage limits high enough for expected traffic.
  • Re-test after theme, plugin or checkout changes.
  • Tell the team when a code is changed or switched off.
  • Pause the ad when a code is retired.

How FunnelGuard handles this

Questions people ask

Why is my promo code from an ad not working at checkout?

Usual causes are a typo or case mismatch, an expired or used-up code, rules that exclude the product or basket, or a link that did not carry the code. Test the exact code from the live ad in a private window and check the discount settings in your store.

Why does my discount code say invalid when it is active?

Check customer eligibility, minimum spend, eligible products, usage limits and the time zone of the start date. An active code can still be rejected if the basket does not meet its rules.

How do I make a discount apply automatically from an ad link?

Use your platform's discount link or auto-apply feature. On Shopify, a link in the form /discount/CODE?redirect=/products/name applies the code. Check that redirects and caching keep the query string.

Why does my coupon work for me but not for customers?

You are probably logged in, using an admin account or a basket that meets the rules. Test in a private window as a new customer, on mobile, with the same product and country the ad targets.

Can a redirect remove a promo code from the URL?

Yes. If a redirect does not keep the query string, a code in the link is lost before checkout. Make the redirect pass parameters through, or store the code in a cookie or session on arrival.

How often should I test promo codes from ads?

Test before launch, after any site or discount change, and regularly during the campaign. A scheduled automated journey can repeat the check for you, but still confirm each new code by hand.

Can FunnelGuard test my promo code?

Partly. If you configure a coupon journey, FunnelGuard runs it on a schedule and checks each step. It does not test every code, product or basket combination, so test new codes by hand too.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: coupon journey if configured.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.